ProcessData<T> class
A value of type T
that represents the successful completion of a process.
A ProcessData has value-equality with another ProcessData if their values are equal.
- Inheritance
-
- Object
- ProcessValue<
T> - ProcessData
- Annotations
-
- @immutable
Constructors
- ProcessData(T value)
-
A value of type
T
that represents the successful completion of a process.const
Properties
- hashCode → int
-
The hash code for this object.
no setteroverride
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- value → T
-
The resulting value of the process.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
-
whenData<
R> (R mapper(T value)) → ProcessValue< R> -
Tries to map this ProcessValue to another ProcessValue using the
provided
mapper
function.inherited -
whenDataAsync<
R> (FutureOr< R> mapper(T value)) → Future<ProcessValue< R> > -
Tries to map this ProcessValue to another ProcessValue using a an
async
mapper
function.inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override