spin abstract method

Future<void> spin(
  1. double angle,
  2. double velocity, {
  3. Map<String, dynamic>? extra,
})

Spin the Base in place angle degrees, at the given angular velocity, expressed in degrees per second.

When velocity is 0, the Base will stop. This method blocks until completed or canceled.

// Spin the base 10 degrees at 15 deg/s
await myBase.spin(10, 15);

For more information, see Base component.

Implementation

Future<void> spin(double angle, double velocity, {Map<String, dynamic>? extra});