use<T> method
Implementation
@override
T use<T> () {
if (!_states.containsKey(T)) {
throw NotExistException('The shared state named $T does not exist on your project.');
}
return _states[T] as T;
}
@override
T use<T> () {
if (!_states.containsKey(T)) {
throw NotExistException('The shared state named $T does not exist on your project.');
}
return _states[T] as T;
}