disposeAll method Null safety

void disposeAll()

Dispose all Injected State

Implementation

static void disposeAll() {
  for (var inj in [...injectedModels]) {
    inj.dispose();
  }
  injectedModels.clear();
  _scaffold._dispose();
  _navigate._dispose();
}