isSupportedVersion method

bool isSupportedVersion(
  1. Message command
)

Whether the given command is supported by the rover.

Implementation

bool isSupportedVersion(Message command) {
  final model = metricsByCommandName[command.messageName];
  return model?.matchesVersion ?? true;
}