globalPersist method

RxPersistString globalPersist(
  1. String key
)

Returns a RxPersistString, with the persistent key of key.

Default value to this if the persistent storage returns null.

Usage: defaultStringValue.globalPersist(key)

ex.

final persistVar = ''.globalPersist(key);

Implementation

RxPersistString globalPersist(String key) {
  return RxPersistString(key, this);
}