showKey method

Future<void> showKey(
  1. String? keyPath
)

Implementation

Future<void> showKey(String? keyPath) async {
  if (_keyPath == keyPath) {
    return;
  }
  _keyPath = keyPath;
  _events = <CatalogActivityEvent>[];
  _error = null;
  if (keyPath == null || keyPath.isEmpty) {
    _loading = false;
    notifyListeners();
    return;
  }
  await refresh();
}