Flutter 应用程序如何接收低内存通知?

how can a Flutter application receive low memory notifications?

我有一个数据缓存。获取一些数据很昂贵。其他数据是一次性的。数据可能非常大,可能会导致 OS 要求应用程序释放内存。

Android 有 onTrimMemory(),IOS 有 applicationDidReceiveMemoryWarning()。有颤动等效项吗?

Flutter WidgetsBindingObserver class 提供了一种检测低内存的方法,如 this article.

中所示