openBox static method

Future<Box<Map?>> openBox(
  1. String boxName, {
  2. String? path,
})

Opens a box. Convenience pass through to Hive.openBox.

If the box is already open, the instance is returned and all provided parameters are being ignored.

Implementation

static Future<Box<Map<dynamic, dynamic>?>> openBox(String boxName,
    {String? path}) async {
  return await Hive.openBox<Map<dynamic, dynamic>?>(boxName, path: path);
}