orThrow method

  1. @override
T orThrow(
  1. Object producer()
)
override

Returns the wrapped value (if present), or throws the result of the producer.

Implementation

@override
T orThrow(Object Function() producer) => throw producer();