Option<T>.of constructor

const Option<T>.of(
  1. T t
)

Return a Some(a).

Implementation

const factory Option.of(T t) = Some<T>;