reportDependencyLinkedToRoute method
Links a dependency to the current route.
Requires the 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];
}
}