TargetModel class

Model class for specifying rich text patterns.

Constructors

TargetModel.new({required String text, List<MatchOption> matchOptions = const [], required TextStyle style, void onTap()?})
Creates a TargetModel.

Properties

hashCode int
The hash code for this object.
no setterinherited
matchOptions List<MatchOption>
Specifies the match options for the target string.
final
onTap → void Function()?
The callback function when the target string is tapped.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
style TextStyle
The text style to apply to the target string.
final
text String
The target string to match.
final

Methods

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