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