check method

  1. @override
bool check(
  1. String? value
)
override

checks the input against the given conditions

Implementation

@override
bool check(String? value) {
  if (value == null) {
    return false;
  }
  return RegExp(r"^[{]?[0-9a-fA-F]{8}-([0-9a-fA-F]{4}-){3}[0-9a-fA-F]{12}[}]?$",
    caseSensitive: false,
    multiLine: false,
  ).hasMatch(value);
}