NEResult<T> class
- Available extensions
Constructors
- NEResult({required int code, String? msg, T? data, String? requestId, int cost = 0})
-
const
- NEResult.success()
-
const
- NEResult.successWith(T? data)
Properties
Methods
-
cast<
U> () → NEResult< U> -
Available on NEResult<
void> , provided by the VoidResultExtension extension -
isSuccess(
) → bool -
map<
U> (U mapper(T)) → NEResult< U> -
Available on NEResult<
T> , provided by the ObjectResultExtension extension -
map<
U> (U mapper()) → NEResult< U> -
Available on NEResult<
void> , provided by the VoidResultExtension extension -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
onFailure(
void action(int, String?)) → NEResult< T> -
Available on NEResult<
T> , provided by the CommonResultExtension extension -
onSuccess(
void action(T)) → NEResult< T> -
Available on NEResult<
T> , provided by the ObjectResultExtension extension -
onSuccess(
void action()) → NEResult< void> -
Available on NEResult<
void> , provided by the VoidResultExtension extension -
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited