fast_rx_shared_preferences 0.1.0 copy "fast_rx_shared_preferences: ^0.1.0" to clipboard
fast_rx_shared_preferences: ^0.1.0 copied to clipboard

A Shared Preferences implementation of fast_rx_persistence storage

A Shared Preferences implementation of fast_rx_persistence storage

pub package codecov checks popularity likes pub points

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