fast_rx_shared_preferences 0.1.5 fast_rx_shared_preferences: ^0.1.5 copied to clipboard
A Shared Preferences implementation of fast_rx_persistence storage for Flutter
A Shared Preferences implementation of fast_rx_persistence storage
Usage #
See fast_rx_persistence for detailed usage information.
import 'package:fast_rx/fast_rx.dart';
import 'package:fast_rx_persistence/fast_rx_persistence.dart';
import 'package:fast_rx_shared_preferences/fast_rx_shared_preferences.dart';
void example() async {
await FastRxSharedPreferences.init();
// Will read the value of the key from Shared Preferences
final rx = 0.rx..persist('key');
// Will write the value to Shared Preferences
rx.value = 1;
}
Additional information #
See fast_ui for more information