toNullable method

  1. @override
R? toNullable()
override

Convert Either to nullable R?.

Note: this loses information about a possible Left value, converting it to simply null.

Implementation

@override
R? toNullable() => null;