closeCommandPalette function

void closeCommandPalette()

Closes the currently active command palette.

Implementation

void closeCommandPalette() {
  final cfg = activeCommandPalette.value;
  activeCommandPalette.value = null;
  cfg?.onClose?.call();
}