TextAttributeValue class
Style and gesture handlers that can be applied to a TextSpan.
Produced by TextAttribute.resolve.
- Annotations
Constructors
- TextAttributeValue({String? debugName, TextStyle? style, GestureTapCallback? onTap, GestureTapCallback? onSecondaryTap, GestureTapCallback? onDoubleTap, GestureLongPressCallback? onLongPress})
-
Constant constructor for text attributes.
const
Properties
- debugName → String?
-
Name of the attribute. Used only for debugging, does not affect equality.
final
- hasGestures → bool
-
True if any of the gesture callbacks is not null.
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- onDoubleTap → GestureTapCallback?
-
Callback when double tapping the span.
final
- onLongPress → GestureLongPressCallback?
-
Callback when long pressing the span.
final
- onSecondaryTap → GestureTapCallback?
-
Callback when secondary tapping the span (e.g. right mouse button).
final
- onTap → GestureTapCallback?
-
Callback when tapping the span.
final
-
props
→ List<
Object?> -
The list of properties that will be used to determine whether
two instances are equal.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- stringify → bool?
-
If set to
true
, the toString method will be overridden to output this instance's props.no setterinherited - style → TextStyle?
-
Style to apply with this attribute.
final
Methods
-
copyWith(
{String? debugName, TextStyle? style, GestureTapCallback? onTap, GestureTapCallback? onSecondaryTap, GestureTapCallback? onDoubleTap, GestureLongPressCallback? onLongPress}) → TextAttributeValue - Create a copy with the passed values replaced.
-
createGestureRecognizer(
) → GestureRecognizer - Creates a GestureRecognizer for the gesture callbacks of this object.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String - A string representation of this object.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited