getSize method

  1. @override
int getSize()
override

Size in KB, matching the spec and the Hive stores -- this returned raw bytes, over-reporting by 1024x.

Implementation

@override
int getSize() {
  final f = File(_db.path);
  return f.existsSync() ? f.lengthSync() ~/ 1024 : 0;
}