count<T> method

  1. @override
Future<int> count<T>()
override

Implementation

@override
Future<int> count<T>() async {
  try {
    _ensureStoreInitialized();
    final box = _store!.box<T>();
    return box.count();
  } catch (e) {
    throw DatabaseBridgeException(error: e);
  }
}