0 purchases
datalocal
datalocal #
Flutter local data saved with state
You can try it on
datalocal.web.app.
Usage #
import 'package:datalocal/datalocal.dart';
...
Future<void> initialize() async {
state = await DataLocal.create(
"notes",
onRefresh: () {
setState(() {});
},
);
state.onRefresh = () {
data = state.data;
setState(() {});
};
state.refresh();
...
...
copied to clipboard
DataLocal #
[DataLocal] is a class to initialize and save any state of data
For example:
...
state = await DataLocal.create(
"notes",
onRefresh: () {
setState(() {});
},
);
state.onRefresh = () {
data = state.data;
setState(() {});
};
state.refresh();
loading = false;
setState(() {});
...
copied to clipboard
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.