handleMemoryPressure method

void handleMemoryPressure ()

Called when the operating system notifies the application of a memory pressure situation.

Notifies all the observers using WidgetsBindingObserver.didHaveMemoryPressure.

This method exposes the memoryPressure notification from SystemChannels.system.

Implementation

void handleMemoryPressure() {
  for (WidgetsBindingObserver observer in _observers)
    observer.didHaveMemoryPressure();
}