TextMessageContent class
Text content in a message.
- Implemented types
- Annotations
-
- @immutable
Constructors
- TextMessageContent({required TextContent text})
-
Creates a TextMessageContent.
const
-
TextMessageContent.fromJson(Map<
String, dynamic> json) -
Creates a TextMessageContent from JSON.
factory
Properties
- hashCode → int
-
The hash code for this object.
no setteroverride
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- text → TextContent
-
The text content.
final
- type → String
-
The type of this content.
no setteroverride
Methods
-
copyWith(
{TextContent? text}) → TextMessageContent - Creates a copy with the given fields replaced.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
Converts to JSON.
override
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override