Responses class

Constructors

Responses()

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

Static Methods

create<T>({required T? builder(), required bool isError(T?), ErrorDetails? error}) Response<T>
createAsync<T>({required Future<T> builder(), required bool isError(T), ErrorDetails? error}) Future<Response<T>>
createFrom<T, X>(Iterable<X> source, Response<T> mapper(X source)) Response<List<T>>
createFromAsync<T, X>(Iterable<X> source, Future<Response<T>> mapper(X source)) Future<Response<List<T>>>
failure<T>(List<ErrorDetails> errors) Response<T>
success<T>(T? payload) Response<T>