execute method

  1. @override
String execute()
override

Implementation

@override
String execute() {
  int absAngle = angle;

  String turnDirection = direction == RotationalDirection.clockwise ? 'cw' : 'ccw';

  // if (angle < 0) {
  //   absAngle = -angle;
  //   turnDirection = 'c' + turnDirection;
  // }

  return "$turnDirection $absAngle";
}