Optional<T>.fromNullable constructor

const Optional<T>.fromNullable(
  1. T? value
)

Implementation

const Optional.fromNullable(T? value) : _value = value;