GeneralCallback<T> class Null safety

Constructors

GeneralCallback({required dynamic onFailure(DioError 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. [...]
read-only, inherited
onError → dynamic Function(GeneralResponse response)
final
onFailure → dynamic Function(DioError e)
final
onSuccess → dynamic Function(T data)
final
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() String
A string representation of this object. [...]
inherited

Operators

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

Static Methods

onErrorCallback(BuildContext context) GeneralResponseCallback
onFailureCallback(BuildContext context) DioErrorCallback