of<T> static method

Opt<T> of<T>(
  1. T value
)

Wraps a non-null value in an Opt.

Implementation

static Opt<T> of<T>(T value) => Opt._(value);