isValid method

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

Implementation

@override
bool isValid(String? value) =>
    value?.let(
      (String it) => regExp.firstMatch(it.trim())?.group(0) == it.trim(),
    ) ??
    false;