hasMatch function

bool hasMatch(
  1. String? value,
  2. String pattern
)

Implementation

bool hasMatch(final String? value, final String pattern) => (value == null) ? false : RegExp(pattern).hasMatch(value);