otp property

List<ValidationRule> otp
final

Implementation

static final List<ValidationRule> otp = [
  Validators.required(message: 'OTP is required'),
  Validators.minLength(6, message: 'OTP must be at least 6 characters long'),
  Validators.maxLength(6, message: 'OTP must not exceed 6 characters'),
];