ServiceBase<T> class abstract

Implemented types
Implementers

Constructors

ServiceBase(String baseUrl, String path, {String requestRole = 'user'})

Properties

baseUrl String
final
hashCode int
The hash code for this object.
no setterinherited
path String
getter/setter pair
requestRole String
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

delete(Uri path) Future<T>
get(Uri path) Future<T>
Methods
getHeaders({String contentType = 'application/json'}) Future<Map<String, String>>
getToken() Future<String?>
override
handleResponse(Response response) → dynamic
mapper(dynamic data) → T
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
post(Uri path, dynamic item) Future<T>
put(Uri path, dynamic item) Future<T>
toString() String
A string representation of this object.
inherited

Operators

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