ClickablePattern class
Constructors
- ClickablePattern({required String name, required String pattern, bool enabled = true, PatternClicked? onClicked, TextStyle? style, InlineSpan spanBuilder(String text, ClickablePattern pattern)?, dynamic onSpanCreation(InlineSpan span, int index)?})
-
Pattern class used by ClickableText widget for pattern finding,
and click function bindings.
const
- ClickablePattern.email({required String name, bool enabled = true, PatternClicked? onClicked, TextStyle? style, InlineSpan spanBuilder(String text, ClickablePattern pattern)?, dynamic onSpanCreation(InlineSpan span, int index)?})
-
const
Properties
- enabled → bool
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- name → String
-
final
- onClicked → PatternClicked?
-
final
- onSpanCreation → (dynamic Function(InlineSpan span, int index)?)
-
final
- pattern → String
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- spanBuilder → (InlineSpan Function(String text, ClickablePattern pattern)?)
-
final
- style → TextStyle?
-
final
Methods
-
copyWith(
{String? name, String? pattern, bool? enabled, PatternClicked? onClicked, TextStyle? style, InlineSpan spanBuilder(String text, ClickablePattern pattern)?, dynamic onSpanCreation(InlineSpan span, int index)?}) → ClickablePattern -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Properties
- error → ClickablePattern
-
final