like Haskel Maybe
import 'package:some/index.dart'; // import all
Maybe<int> some = Some(1);
Maybe<int> none = None();
Maybe<int> some = Some(1);
var a = switch (some) {
Some(v: var v) => v,
null => 0
};
some.isSome
none.isNone
some.has
if(some.has) {
some.val!
}
some.map((v) => 'some');
some.then((v) => 'some');
some.flatMap((v) => Some('some'));
some.andThen((v) => Some('some'));
some.and(Some('some'));
some.andThen((v) => Some('some'));
some.or(Some('some'));
some.orElse(() => Some('some'));
some.xor(Some('some'));
someSome.flatten();
some.when(some: (v) => 'some', none: () => 'none');
some.some((v) => 'some');
none.none(() => 'none');
none.defaultVal('none');
none.defaultValFn(() => 'none');