get<E> method
E
get<E>()
Implementation
E get<E>() {
final v = getOrNull<E>();
return (v != null) ? v : (throw Exception('No state found of type $E'));
}
E get<E>() {
final v = getOrNull<E>();
return (v != null) ? v : (throw Exception('No state found of type $E'));
}