rx property

Returns singleton instance associated with this SharedPreferences.

Implementation

RxSharedPreferences get rx {
  final cached = _instances[this];
  if (cached != null) {
    return cached;
  }

  return _instances[this] = RxSharedPreferences(
    this,
    RxSharedPreferencesConfigs.logger,
    () => _instances.remove(this),
  );
}