DecoratorRule.word constructor

DecoratorRule.word({
  1. required String word,
  2. required TextStyle style,
  3. dynamic onTap(
    1. String
    )?,
  4. bool caseSensitive = false,
})

Implementation

factory DecoratorRule.word({
  required String word,
  required TextStyle style,
  Function(String)? onTap,
  bool caseSensitive = false,
}) {
  return DecoratorRule(
    style: style,
    regExp: CommonRegExp.word(
      word,
      caseSensitive: caseSensitive,
    ),
    onTap: onTap,
  );
}