toNullable method

  1. @override
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

@override
T? toNullable() => null;