init static method

Future<void> init()

Initializes FastRxPersistence with a SharedPreferencesStore

Subsequent calls will have no effect

Implementation

static Future<void> init() async {
  _prefs ??= await SharedPreferences.getInstance();
  FastRxPersistence.init(SharedPreferencesStore(prefs));
}