Optional< T>.fromNullable constructor
Constructs an Optional of the given value
.
If value
is null, returns absent().
Implementation
const Optional.fromNullable(T value) : this._value = value;
Constructs an Optional of the given value
.
If value
is null, returns absent().
const Optional.fromNullable(T value) : this._value = value;