withEnabled method
The same command, enabled only while enabled is.
Implementation
ShellCommand withEnabled(ValueListenable<bool> enabled) => ShellCommand(
id: id,
label: label,
icon: icon,
shortcuts: shortcuts,
enabled: enabled,
run: run);