totalSessions static method

Future<int> totalSessions()

Total number of sessions.

Implementation

static Future<int> totalSessions() async {
  final box = await _openBox();
  return box.toMap().keys
      .where((k) => k is String && !k.startsWith('_'))
      .length;
}