cancelPendingRegistration method

  1. @override
void cancelPendingRegistration([
  1. HotKey? hotKey
])

Implementation

@override
void cancelPendingRegistration([HotKey? hotKey]) {
  for (final attempt in _attempts) {
    if (hotKey == null || attempt.hotKey.identifier == hotKey.identifier) {
      attempt.cancelled = true;
    }
  }
  _backend.cancelPendingRegistration(hotKey);
}