Err<T> constructor

Err<T>(
  1. Error? _err
)

Create "failed" result. Err(StateError('Some error'));

Implementation

Err(this._err) {
  ArgumentError.checkNotNull(err);
}