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