SelectiveDefinition class Null safety
A class that defines rules for parsing, appearance and actions for CustomText and CustomTextEditingController.
This is similar to TextDefinition but different in that it configures separately the string to be displayed and the one to be passed to the tap and long-press callbacks.
- Inheritance
-
- Object
- Definition
- SelectiveDefinition
Constructors
- SelectiveDefinition({required TextMatcher matcher, required ShownTextSelector shownText, ActionTextSelector? actionText, TextStyle? matchStyle, TextStyle? tapStyle, TextStyle? hoverStyle, void onTap(GestureDetails)?, void onLongPress(GestureDetails)?, void onGesture(GestureDetails)?, MouseCursor? mouseCursor})
-
Creates a SelectiveDefinition that defines rules for parsing,
appearance and actions similarly to TextDefinition but allows
a little more flexible settings.
const
Properties
- actionText → ActionTextSelector?
-
finalinherited
- builder → SpanBuilder?
-
finalinherited
- hashCode → int
-
The hash code for this object.
read-onlyinherited
- hoverStyle → TextStyle?
-
finalinherited
- matcher → TextMatcher
-
finalinherited
- matchStyle → TextStyle?
-
finalinherited
- mouseCursor → MouseCursor?
-
finalinherited
- onGesture → (void Function(GestureDetails)?)
-
finalinherited
- onLongPress → (void Function(GestureDetails)?)
-
finalinherited
- onTap → (void Function(GestureDetails)?)
-
finalinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
read-onlyinherited
- shownText → ShownTextSelector?
-
finalinherited
- tapStyle → TextStyle?
-
finalinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a non-existent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited