getPackagesCount method

Future<int> getPackagesCount()

Implementation

Future<int> getPackagesCount() async {
  if (!_isInitialized) throw Exception('PackageStorage not initialized');
  return _box!.length;
}