Result<T>.error constructor
Null safety
- Object error,
- [StackTrace? stackTrace]
Creates a Result
holding an error.
Alias for ErrorResult.ErrorResult.
Implementation
factory Result.error(Object error, [StackTrace? stackTrace]) =>
ErrorResult(error, stackTrace);