match static method
Check if the value matches the given RegExp pattern.
Implementation
static String? match(String? value, {String? message, required String pattern}) =>
value == null || value.isEmpty || validations.matches(value, pattern) == true ? null : message ?? 'The pattern "$pattern" does not match the input';