toNullable method

Future<T?> toNullable()

Returns an nullable that represents this optional value.

If Option has Some value, it will return that value. If Option has a None value, it will return null.

Implementation

Future<T?> toNullable() => then((v) => v.toNullable());