TextAttribute class abstract
An attribute to apply to a span of text.
Applying an attribute to a span of text can format or add gesture handlers to that span.
If you extend this class it is very strongly recommended you override the equality operator or use a singleton for the attribute, because the span system uses equality tests for operations like SpanList.merge and SpanList.isApplied/SpanList.willApply.
Attributes contain expandRules to indicate how spans with the attribute should behave when an insertion happens at its boundaries.
- Implementers
Constructors
- TextAttribute()
-
Base constant constructor for inheritors that have a constant constructor.
const
Properties
- expandRules → SpanExpandRules
-
Rules that determine how spans with this attribute grow when insertions
happend at their boundaries.
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
resolve(
BuildContext context) → TextAttributeValue -
Returns a text attribute value that can depend on
context
. -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited