globalPersist method
Returns a RxPersistDouble
, with the persistent key of key
.
Default value to this if the persistent storage returns null.
Usage: defaultDoubleValue.globalPersist(key)
ex.
final persistVar = 0.0.globalPersist(key);
Implementation
RxPersistDouble globalPersist(String key) {
return RxPersistDouble(key, this);
}