Some<T> constructor
const
Some<T> (
- T value
Creates a present option state.
const option = Some<String?>('John');
Implementation
const Some(this.value);
Creates a present option state.
const option = Some<String?>('John');
const Some(this.value);