hasMatch method
Helper function to check for pattern matches.
Implementation
bool hasMatch(
String pattern, {
bool multiLine = false,
bool caseSensitive = true,
bool unicode = false,
bool dotAll = false,
}) =>
this != null &&
RegExp(
pattern,
caseSensitive: caseSensitive,
multiLine: multiLine,
unicode: unicode,
dotAll: dotAll,
).hasMatch(this!);