hasCommandsFor method

bool hasCommandsFor(
  1. Device? device
)

Whether at least one command is available for device.

Implementation

bool hasCommandsFor(Device? device) =>
    commands.any((command) => command.matches(device));