Result<R, S>.ok constructor

const Result<R, S>.ok([
  1. R? _value
])

Create a result with a value

Implementation

const Result.ok([this._value])
    : assert(_value != null || null is R || Future<R> == Future<void>),
      _error = null;