Fail.withError constructor

Fail.withError(
  1. Error error, {
  2. String message = '',
})

Implementation

Fail.withError(Error error, {String message = ''}) : message = message,
                                                    _failedWith = Left<Error, Exception>(error);