getState<S> method
Implementation
S getState<S>(
S Function() dependencyBuilder, {
String? tag,
bool permanent = true,
}) {
final key = _getKey(S, tag);
if (_singl.containsKey(key)) {
return _singl[key]!.getDependency() as S;
} else {
return put(dependencyBuilder, tag: tag, permanent: permanent);
}
}