handleMemoryPressure method

  1. @override
void handleMemoryPressure()
override

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

Notifies all the observers using ElementsBindingObserver.didHaveMemoryPressure.

This method exposes the memoryPressure notification from SystemChannels.system.

Implementation

@override
void handleMemoryPressure() {
  super.handleMemoryPressure();
  for (ElementsBindingObserver observer in _observers) observer.didHaveMemoryPressure();
}