Result<T, E>.error constructor
Result<T, E>.error (
- E error
Creates a Result that represents failure.
Implementation
factory Result.error(E error) => _Error<T, E>(error);
Creates a Result that represents failure.
factory Result.error(E error) => _Error<T, E>(error);