ChopperClientWrapper class abstract

Constructors

ChopperClientWrapper()

Properties

baseUrl String
Base url of your api service
no setter
chopperServices List<ChopperService>
multiple chopper services that you create for you appication should be assigned here
no setter
hashCode int
The hash code for this object.
no setterinherited
jsonToErrorModelConvertorMap Map<Type, JsonConvertorFunction>
Json to model converter stores a Map that has a type and it's method that convertes json to its type, for e.g. ErrorResponseModel: ErrorResponseModel.fromJson
no setter
jsonToModelConvertorMap Map<Type, JsonConvertorFunction>
Json to model converter stores a Map that has a type and it's method that convertes json to its type, for e.g. LoginResponseModel: LoginResponseModel.fromJson
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

getChopperService<T extends ChopperService>() → T
using this method you can access any particular chopper service that you have created and assigned in chopperServices
getHeaderParameters() Map<String, String>
some other header prameters that you might want to add header
getToken() FutureOr<String>
this method has to be override compulsory to get token that can be passed to header
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