expectRegexMatch function
Implementation
void expectRegexMatch(
String value,
RegExp regex, {
dynamic skip, // true or a String
}) {
final matcher = predicate<String>((obj) => regex.hasMatch(obj));
expect(
value,
matcher,
skip: skip,
reason: "Does not match the regular expression: ${regex.pattern}",
);
}