otherControllerIs method

bool otherControllerIs(
  1. OperatingMode mode
)

Returns Whether another controller is set to the given mode.

Implementation

bool otherControllerIs(OperatingMode mode) => models.rover.controllers
  .any((other) => other.index != index && other.mode == mode);