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

Libraries

dio_sync