Result<T, E>.error constructor Null safety

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

Implementation

factory Result.error(E error) = Failure;