last_state 0.1.1
last_state: ^0.1.1 copied to clipboard
Simple and robust state saver which allows restoring state after the app process is killed while in the background.
Use this package as a library
Depend on it
Run this command:
With Flutter:
$ flutter pub add last_stateThis will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get):
dependencies:
last_state: ^0.1.1Alternatively, your editor might support flutter pub get. Check the docs for your editor to learn more.
Import it
Now in your Dart code, you can use:
import 'package:last_state/last_state.dart';