orElseThrow abstract method
Returns the current value if present, otherwise throws the provided
error
or a StateError.
Implementation
T orElseThrow([Object? error]);
Returns the current value if present, otherwise throws the provided
error
or a StateError.
T orElseThrow([Object? error]);