FutureResultExtension<T, E> extension
Extension methods on Future
Methods
-
andThen<
T2, E2> (Result< T2, E2> thenFunction(T)) → FutureResult<T2, dynamic> - See documentation for Result.andThen method.
-
andThenAsync<
T2, E2> (FutureResult< T2, E2> thenFunction(T)) → FutureResult<T2, dynamic> - See documentation for Result.andThenAsync method.
-
andThenSuccess<
T2, E2> (T2 thenFunction(T)) → FutureResult< T2, dynamic> - NOTE: This is old syntax preserved for backward compatibility. Instead use the transform method.
-
andThenSuccessAsync<
T2, E2> (Future< T2> thenFunction(T)) → FutureResult<T2, dynamic> - NOTE: This is old syntax preserved for backward compatibility. Instead use the transformAsync method.
-
errorCast<
T2> () → FutureResult< T2, E> - See documentation for Result.errorCast method.
-
fold<
T2> ({required T2 onSuccess(T value), required T2 onError(E error)}) → Future< T2> - See documentation for the Result.fold method.
-
mapError<
E2> (E2 mapFunction(E error)) → FutureResult< T, E2> - See documentation for Result.mapError method.
-
mapValue<
T2> (T2 mapFunction(T value)) → FutureResult< T2, E> - See documentation for Result.mapValue method.
-
match(
{required dynamic onSuccess(T value), required dynamic onError(E error)}) → Future< void> - See documentation for the Result.match method.
-
transform<
T2, E2> (T2 thenFunction(T)) → FutureResult< T2, dynamic> - See documentation for Result.transform method.
-
transformAsync<
T2, E2> (Future< T2> thenFunction(T)) → FutureResult<T2, dynamic> - See documentation for Result.transformAsync method.
-
withError(
dynamic withFunction(E)) → FutureResult< T, dynamic> - See documentation for the Result.withError method.
-
withErrorAsync(
Future< void> withFunction(E)) → FutureResult<T, dynamic> - See documentation for the Result.withErrorAsync method.
-
withResult(
dynamic withFunction(T)) → FutureResult< T, dynamic> - See documentation for the Result.withResult method.
-
withResultAsync(
Future< void> withFunction(T)) → FutureResult<T, dynamic> - See documentation for the Result.withResultAsync method.