TextContent class

Text content with annotations.

Annotations
  • @immutable

Constructors

TextContent({required String value, required List<TextAnnotation> annotations})
Creates a TextContent.
const
TextContent.fromJson(Map<String, dynamic> json)
Creates a TextContent from JSON.
factory

Properties

annotations List<TextAnnotation>
Annotations in the text.
final
hashCode int
The hash code for this object.
no setteroverride
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
value String
The text value.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Converts to JSON.
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
override