getClient method

  1. @override
Future<Map<String, dynamic>?> getClient(
  1. String name
)
override

Implementation

@override
Future<Map<String, dynamic>?> getClient(String name) =>
    runBenchmarked('Get Client from Hive', () async {
      final map = <String, dynamic>{};
      for (final key in _clientBox.keys) {
        if (key == 'version') continue;
        map[key] = await _clientBox.get(key);
      }
      if (map.isEmpty) return null;
      return map;
    });