getStateWithNamespace<T> method

Rx<T> getStateWithNamespace<T>(
  1. String namespace,
  2. String key
)

Get state with namespace

Implementation

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