Some<T> constructor

  1. @literal
const Some<T>(
  1. T value
)

Creates an Option with the given value.

Examples

// prints "Some(2)"
print(const Some(2));

Implementation

@literal
const Some(this.value) : super._();