reportDependencyLinkedToRoute static method

void reportDependencyLinkedToRoute(
  1. String depedencyKey
)

Links a Class instance S (or tag) to the current route. Requires usage of GetMaterialApp.

Implementation

static void reportDependencyLinkedToRoute(String depedencyKey) {
  if (_current == null) return;
  if (_routesKey.containsKey(_current)) {
    _routesKey[_current!]!.add(depedencyKey);
  } else {
    _routesKey[_current] = <String>[depedencyKey];
  }
}