Result<T>.value constructor Null safety

Result<T>.value(
  1. T value
)

Creates a Result holding a value.

Alias for ValueResult.ValueResult.

Implementation

factory Result.value(T value) = ValueResult<T>;