prefs property

SharedPreferences get prefs

Implementation

static SharedPreferences get prefs {
  if (_prefs == null) {
    if (kDebugMode) {
      print(
          'BlueWhale WARNING: WhaleStorage.init() was not called before reading '
          'a persistentState. Default values will be used synchronously during this read.');
    }
    throw StateError(
        'WhaleStorage not initialized. Call await WhaleStorage.init() in main() before using persistentState.');
  }
  return _prefs!;
}