requireValue property

  1. @override
T get requireValue
override

Force unwrap the value of the state.

This will throw an error if the state does not have a value.

Implementation

@override
T get requireValue =>
    throw UnsupportedError('Loading state does not have a value');