HttpResult<T> class
Methods
-
map<TResult extends Object?>({required TResult success(_HttpSuccess<T> value), required TResult failed(_HttpFailed<T> value)})
→ TResult
-
inherited
-
mapOrNull<TResult extends Object?>({TResult? success(_HttpSuccess<T> value)?, TResult? failed(_HttpFailed<T> value)?})
→ TResult?
-
inherited
-
maybeMap<TResult extends Object?>({TResult success(_HttpSuccess<T> value)?, TResult failed(_HttpFailed<T> value)?, required TResult orElse()})
→ TResult
-
inherited
-
maybeWhen<TResult extends Object?>({TResult success(int statusCode, T data)?, TResult failed(int? statusCode, Object? data)?, required TResult orElse()})
→ TResult
-
inherited
-
noSuchMethod(Invocation invocation)
→ dynamic
-
Invoked when a nonexistent method or property is accessed.
inherited
-
toString()
→ String
-
A string representation of this object.
inherited
-
when<TResult extends Object?>({required TResult success(int statusCode, T data), required TResult failed(int? statusCode, Object? data)})
→ TResult
-
inherited
-
whenOrNull<TResult extends Object?>({TResult? success(int statusCode, T data)?, TResult? failed(int? statusCode, Object? data)?})
→ TResult?
-
inherited