FutureResult<T extends Object?, E extends Object> typedef
A future result that will eventually resolve to either a value or an error.
Represents an asynchronous operation that can either succeed with a value
of type T or fail with a specific error type E.
Useful for async operations that need explicit error handling.
Implementation
typedef FutureResult<T extends Object?, E extends Object> =
Future<Result<T, E>>;