PersistentContextNotifier constructor

PersistentContextNotifier()

Implementation

PersistentContextNotifier()
    : _prefsFuture = SharedPreferences.getInstance(),
      super({}) {
  _prefsFuture.then((prefs) {
    final newValue = extractPreferencesMap(prefs);

    value = newValue;
    readyCompleter.complete(true);
  });
}