Constructors
-
Success(T value)
-
factory
Methods
-
chain<Res>(Res cb(T value))
→ Result<Res>
-
inherited
-
getOrElse(dynamic orElse())
→ T
-
inherited
-
map<TResult extends Object?>({required TResult loading(Loading<T> value), required TResult success(Success<T> value), required TResult error(Error<T> value)})
→ TResult
-
inherited
-
mapOrNull<TResult extends Object?>({TResult? loading(Loading<T> value)?, TResult? success(Success<T> value)?, TResult? error(Error<T> value)?})
→ TResult?
-
inherited
-
maybeMap<TResult extends Object?>({TResult loading(Loading<T> value)?, TResult success(Success<T> value)?, TResult error(Error<T> value)?, required TResult orElse()})
→ TResult
-
inherited
-
maybeWhen<TResult extends Object?>({TResult loading()?, TResult success(T value)?, TResult error(Exception error)?, 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 loading(), required TResult success(T value), required TResult error(Exception error)})
→ TResult
-
inherited
-
whenOrNull<TResult extends Object?>({TResult? loading()?, TResult? success(T value)?, TResult? error(Exception error)?})
→ TResult?
-
inherited