TargetModel constructor

TargetModel({
  1. required String text,
  2. List<MatchOption> matchOptions = const [],
  3. required TextStyle style,
  4. 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,
});