dio_sync 1.0.1 copy "dio_sync: ^1.0.1" to clipboard
dio_sync: ^1.0.1 copied to clipboard

add sync mechaniscm to dio requests

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();
}

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();
}
1
likes
140
points
35
downloads

Publisher

unverified uploader

Weekly Downloads

add sync mechaniscm to dio requests

Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD-3-Clause (license)

Dependencies

connectivity_plus, dio, flutter, hive, uuid

More

Packages that depend on dio_sync