validMobile static method

PhoneNumberInputValidator validMobile({
  1. String? errorText,
  2. bool allowEmpty = true,
})

convenience shortcut method for invalidType(context, PhoneNumberType.mobile, ...)

Implementation

static PhoneNumberInputValidator validMobile({
  /// custom error message
  String? errorText,

  /// determine whether a missing value should be reported as invalid
  bool allowEmpty = true,
}) =>
    validType(
      PhoneNumberType.mobile,
      errorText: errorText,
      allowEmpty: allowEmpty,
    );