RxPersistDouble constructor
Rx persistent class, with the persistent key of _persistKey.
Default value to initial if the persistent storage returns null.
Implementation
RxPersistDouble(String key, [double initial = 0.0])
: assert(_isPersistenceInit,
'Persistent storage did not initialize, please use initGlobalPersist() in main()'),
super(key, initial) {
_value = _sharedPreferences.getDouble(_persistKey) ?? initial;
}