SaAuthService class

Inheritance

Constructors

SaAuthService(String baseUrl, {String path = 'token', String? realm})

Properties

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

Methods

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

Operators

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

Static Methods

decodeToken(String token) Map<String, dynamic>