Constructors
-
Success({required T data})
-
const
factory
Properties
-
copyWith
→ $SuccessCopyWith<T, Success<T>>
-
no setter
-
data
→ T
-
no setter
-
hashCode
→ int
-
The hash code for this object.
no setterinherited
-
runtimeType
→ Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
map<TResult extends Object?>({required TResult success(Success<T> value), required TResult failure(Failure<T> value)})
→ TResult
-
inherited
-
maybeMap<TResult extends Object?>({TResult success(Success<T> value)?, TResult failure(Failure<T> value)?, required TResult orElse()})
→ TResult
-
inherited
-
maybeWhen<TResult extends Object?>({TResult success(T data)?, TResult failure(String 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 success(T data), required TResult failure(String error)})
→ TResult
-
inherited