getState<T> method

Rx<T> getState<T>(
  1. String key
)

Get state

Implementation

// ignore: deprecated_member_use_from_same_package
Rx<T> getState<T>(String key) {
  final state = _state[key];
  if (state == null) {
    throw StateError('State with key "$key" not found');
  }
  // ignore: deprecated_member_use_from_same_package
  return state as Rx<T>;
}