maybe property

Maybe<T> get maybe

Wrap this into an Maybe<T> with null representing None.

Implementation

Maybe<T> get maybe => this == null ? None() : Just(this!);