orElseThrow abstract method
Returns this Optional's value, if present. Otherwise, throws the result of calling supplyError().
Implementation
T orElseThrow(Object Function() supplyError);
Returns this Optional's value, if present. Otherwise, throws the result of calling supplyError().
T orElseThrow(Object Function() supplyError);