MentionSniffer constructor
Creates a mention sniffer, optionally overriding the default style,
hoverStyle or pattern.
Implementation
MentionSniffer({TextStyle? style, super.hoverStyle, RegExp? pattern})
: super(
style: style ??
const TextStyle(
color: Colors.deepPurple, fontWeight: FontWeight.w600),
pattern: pattern ?? RegExp(r'(?<![\w@])@[a-zA-Z0-9_]{2,}'),
);