disposeRecursive method

  1. @override
void disposeRecursive()
inherited

Execute "dispose()" in all the injectors from this layers tree

Implementation

@override
void disposeRecursive() {
  layersGraph.executeInAllInjectors(this, (i) {
    if (i._tag != _tag) i.dispose();
  });
  // The current is the last to be disposed because it cleans the layersGraph
  dispose();
}