GeneralCallback<T> class

Constructors

GeneralCallback({required dynamic onFailure(DioException e), required dynamic onError(GeneralResponse response), required dynamic onSuccess(T data)})
GeneralCallback.simple(BuildContext context, dynamic onSuccess(T data))
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
onError → dynamic Function(GeneralResponse response)
final
onFailure → dynamic Function(DioException e)
final
onSuccess → dynamic Function(T data)
final
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