PostmonSearchCep class
Constructors
- PostmonSearchCep({Client? client})
Properties
- badRequest → int
-
Constante para resposta com erro do servidor
final
- client → Client
-
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- ok → int
-
Constante para resposta OK do servidor
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
searchInfoByCep(
{required String cep, PostmonReturnType returnType = PostmonReturnType.json}) → Future< Either< SearchCepError, PostmonCepInfo> > - Envia uma request GET para a API POSTMON enviando uma String com cep sem formatação. É possivel especificar o tipo de retorno através da enumeração PostmonReturnType, podendo para este método ser json ou xml. Se não escolhido nenhum tipo de retorno o default será json.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited