toNullable method

  1. @override
T toNullable()
override

Return value of type T when this Option is a Some, null otherwise.

Implementation

@override
T toNullable() => _value;