Either<T, R> constructor

const Either<T, R>({
  1. T? ok,
  2. R? nok,
})

Construct a new instance.

Implementation

const Either({this.ok, this.nok});