DecoratorRule.startsWith constructor

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

Implementation

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