0 purchases
dio sync
how to use #
void test() async {
/// make sure you intialized hive
/// the best case is to use it in your root widget
var box = await SyncBox.create(client: Dio());
/// dont forgot to dispose the box after finish your work
await box.dispose();
}
copied to clipboard
if you want to use lazy loading for values you can use LazySyncBox #
void test() async {
/// make sure you intialized hive
/// the best case is to use it in your root widget
var box = await LazySyncBox.create(client: Dio());
/// dont forgot to dispose the box after finish your work
await box.dispose();
}
copied to clipboard
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.