ThemedTextAttribute class abstract
Base class for TextAttribute implementations that need an AttributeTheme to resolve their theme.
- Inheritance
-
- Object
- TextAttribute
- ThemedTextAttribute
Constructors
- ThemedTextAttribute({String? debugName, GestureTapCallback? onTap, GestureTapCallback? onSecondaryTap, GestureTapCallback? onDoubleTap, GestureLongPressCallback? onLongPress})
- Base constructor for themed attribute.
Properties
- expandRules → SpanExpandRules
-
Rules that determine how spans with this attribute grow when insertions
happend at their boundaries.
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
Methods
-
getStyle(
AttributeThemeData theme) → TextStyle? - Get the style applied by this attribute.
-
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
.override -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited