discontinuedPackage hive_plus has been discontinued and replaced by hive_ce.

clear method

  1. @override
Future<void> clear()

Implementation

@override
Future<void> clear() async {
  final box = await _getBox();
  await box.deleteAll(box.keys);
  await _flushOrMark();
}