0 purchases
slow store
SlowStore #
SlowStore package is a versatile local data storage solution for Flutter developers, designed to make data persistence with your Flutter applications easy and efficient.
Key Features #
Store data as key-value pairs.
Support for various data types, including strings, num, boolean, date time, map, list.
Retrieve specific data or entire data in the database.
Easily create, update or delete stored data.
Easily rename or delete a database.
Asynchronous operations for smooth user experiences.
Highly customizable to adapt to your specific app requirements.
NOTE : DateTime is converted to string for encoding, use DateTime.parse("time") #
Installation #
flutter pub add slow_store
copied to clipboard
Using #
Import the Package: Import the package in your Dart code.
import 'package:slow_store/slow_store.dart';
copied to clipboard
Add Data #
Create data into a database with a specified id, if none is provided, one will be generated for the data created.
SlowStore.database(name: "name").entry(id).create(data: data);
copied to clipboard
Update Data #
Update data of the specified id
in the specified database.
SlowStore.database(name: "name").entry(id).update(data: data);
copied to clipboard
Read Data #
Get a data in the specified id
or all data in the specified database, depending on if the id is provided or not.
Read a single enty's data
SlowStore.database(name: "name").entry(id).read();
copied to clipboard
Read all data in the database
SlowStore.database(name: "name").entry().read();
copied to clipboard
Delete data #
SlowStore.database(name: "name").entry(id).delete();
copied to clipboard
Delete a database #
SlowStore.database(name: name).delete();
copied to clipboard
Rename a database #
SlowStore.database(name: oldName).rename(newName: newName);
copied to clipboard
Contributing #
Contributions are welcome! If you find any bugs or want to add new features, feel free to submit issues or pull requests.
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.