disableCaching static method

dynamic disableCaching()

Disables local caching for Firestore data.

Implementation

static disableCaching() async {
  //WEB:
  if (kIsWeb) {
    print("!!! Disabling caching is not supported on web. Caching is always on once enabled. You must restart your app and avoid calling enableCaching().");
  }
  //MOBILE (iOS & Android)
  else {
    instance.settings = const Settings(persistenceEnabled: false);
  }
}