Cep class
Represents a Brazilian address retrieved by a postal code (CEP).
Constructors
Properties
- address → String
-
The street address (logradouro).
final
- cep → String
-
The CEP (Código de Endereçamento Postal), must be exactly 8 digits.
final
- city → String
-
The city name (localidade).
final
- district → String
-
The neighborhood or district (bairro).
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- state → String
-
The state abbreviation (UF), e.g., 'SP' or 'RJ'.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> - Converts the Cep instance to a JSON map.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited