Some<T> constructor

const Some<T>(
  1. T value
)

Creates a present option state.

const option = Some<String?>('John');

Implementation

const Some(this.value);