AuthTokenInterceptor class

Inheritance

Constructors

AuthTokenInterceptor({String? token, String headerName = 'Authorization', String tokenPrefix = 'Bearer'})

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
token String?
no setter

Methods

clearToken() → void
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
onError(HtpioError error, HtpioRequest request) Future<HtpioResponse>
inherited
onRequest(HtpioRequest request) Future<HtpioRequest>
override
onResponse(HtpioResponse response) Future<HtpioResponse>
inherited
setToken(String? token) → void
toString() String
A string representation of this object.
inherited

Operators

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