TargetModel constructor
TargetModel({
- required String text,
- List<
MatchOption> matchOptions = const [], - required TextStyle style,
- void onTap()?,
Creates a TargetModel.
text
is the target string to match.
matchOptions
specifies the match options for the target string.
style
is the text style to apply to the target string.
onTap
is the callback function when the target string is tapped.
Implementation
TargetModel({
required this.text,
this.matchOptions = const [],
required this.style,
this.onTap,
});