hasMatch static method Null safety
Returns whether the pattern has a match in the string input
.
Implementation
static bool hasMatch(String? str, String pattern) =>
str == null ? false : RegExp(pattern).hasMatch(str);
Returns whether the pattern has a match in the string input
.
static bool hasMatch(String? str, String pattern) =>
str == null ? false : RegExp(pattern).hasMatch(str);