String contains pattern
static bool hasMatch(String? value, String pattern) { //ignore:avoid_bool_literals_in_conditional_expressions return (value == null) ? false : RegExp(pattern).hasMatch(value); }