init static method

Future<void> init()

Initialize the shared preferences with a cache

Implementation

static Future<void> init() async {
  _preferences = await SharedPreferencesWithCache.create(
    cacheOptions: const SharedPreferencesWithCacheOptions(),
  );
}