Result<T, E>.ok constructor Null safety

const Result<T, E>.ok(
  1. T value
)

Creates a successful result from value

Implementation

const Result.ok(T value)
    : _v = value,
      isOk = true;