ReqBrPhone class

Plano Brasileiro de Numeração de Telefones Fixos Para Campos Obrigatório.

Brazilian Landline Numbering Plan for Required Fields.

Brazil's telephone numbering plan uses a two-digit area code plus eight-digit local telephone numbers for landlines. Typically, a number is masked as (AA) NNNN-NNNN, where AA = area code and N = digit 0–9. For example:

  • unmasked (plain) number: "1124654321".
  • unmasked with country code prefix: "+551124654321".
  • masked number: "(11) 2465-4321".

Constructors

ReqBrPhone({String? blank, String? mal})
Validates masked and unmasked (with or without '+55' prefix) Brazilian landline numbers.

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

call(String? brPhone) String?
Checks whether the brPhone value is either blank or malformed.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited