disposeAll static method

void disposeAll()

Dispose all Injected State

Implementation

static void disposeAll() {
  scaffoldObject.dispose();
  navigate.dispose();
  if (injectedModels.isEmpty) return;
  for (var inj in [...injectedModels]) {
    inj.dispose();
  }
  injectedModels.clear();
}