dispose method Null safety

  1. @mustCallSuper
void dispose()
mustCallSuper">@mustCallSuper

Called when the entry is no longer needed.

Call this will remove all shortcuts associated with this ShortcutRegistryEntry from the registry.

Implementation

@mustCallSuper
void dispose() {
  registry._disposeToken(this);
}