TypedExtras class

Extra data that will be passed to Dio's request, response, transformer, and interceptors. Extend TypedExtras and define fields that correspond to the keys passed into extras. The values of these fields will be derived from the data passed into your subclass.

Example:

@TypedExtrasSubClass(
  id: '1234',
  fileType: '.json',
)
@GET("/get")
Future<String> foo();
Annotations
  • @immutable

Constructors

TypedExtras()
const

Properties

hashCode int
The hash code for this object.
no setterinherited
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
toString() String
A string representation of this object.
inherited

Operators

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