Result<T, F extends Failure> constructor

Result<T, F extends Failure>({
  1. bool ok = true,
  2. T? data,
  3. F? failure,
})

Implementation

Result({bool ok = true, T? data, F? failure}) {
  _ok = ok;
  _data = data;
  _failure = failure;
}