result property

T? get result

The result of the most recent action.

Returns null if the action is running or completed with an error.

Implementation

T? get result => value is Completed<T> ? (value as Completed<T>).data : null;