updateBox method

Future<bool> updateBox(
  1. String id,
  2. T item
)

Implementation

Future<bool> updateBox(String id, T item) async {
  try {
    await _box.put(id, item);
    return true;
  } catch (e) {
    throw HiveException.update(e).debugPrint;
  }
}