reportDependencyLinkedToRoute method
Links a Class instance S
(or tag
) to the current route.
Requires usage of GetMaterialApp
.
Implementation
void reportDependencyLinkedToRoute(String dependencyKey) {
if (_current == null) return;
if (_routesKey.containsKey(_current)) {
_routesKey[_current!]!.add(dependencyKey);
} else {
_routesKey[_current] = <String>[dependencyKey];
}
}