updateCommand method
Update command.
Implementation
void updateCommand(NmOperatorCommand command) {
final value = selected;
if (value == null) return;
_update(
value.copyWith(
commands: [
for (final item in value.commands)
if (item.id == command.id) command else item,
],
),
);
}