SimpleText class
SimpleText model
Represents a text inside RichText
- Annotations
-
- @freezed
Constructors
-
SimpleText({required List<
Span> spans, required String text, required String type}) -
Default constructor
factory
-
SimpleText.fromJson(Map<
String, dynamic> json) -
Creates a SimpleText object from json
factory
Properties
-
copyWith
→ $SimpleTextCopyWith<
SimpleText> -
no setterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
spans
→ List<
Span> -
no setterinherited
- text → String
-
no setterinherited
- type → String
-
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited