Result<T, E>.err constructor Null safety

const Result<T, E>.err(
  1. E error
)

Creates a failed result from error

Implementation

const Result.err(E error)
    : _v = error,
      isOk = false;