save_data_lib 1.0.0
save_data_lib: ^1.0.0 copied to clipboard
convert class to json, and save to shared preferences for flutter.
Use this package as a library
Depend on it
Run this command:
With Flutter:
$ flutter pub add save_data_libThis will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get):
dependencies:
save_data_lib: ^1.0.0Alternatively, 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:save_data_lib/save_data_lib.dart';