byName<T> method
Get the state of a module
Implementation
dynamic byName<T>(
String name, {
Map<String, int>? stackMap,
}) {
if (stackMap == null || stackMap.isEmpty) {
stackMap = _stackMap;
}
if (stackMap[name] != null) {
int index = stackMap[name]!;
return _stateMap['$name@$index'];
}
return null;
}