isMatch method

bool isMatch(
  1. String pattern
)

Returns true if the string matches the given regular expression pattern.

Implementation

bool isMatch(String pattern) =>
    !isNullOrEmpty && RegExp(pattern).hasMatch(this!);