validateOtp method

bool validateOtp()

Implementation

bool validateOtp() {
  return RegExp(r'^([0-9]{4}$)').hasMatch(this);
}