validFixedLine static method

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

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

Implementation

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

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