move method

  1. @override
Future<void> move(
  1. int angle, {
  2. Map<String, dynamic>? extra,
})
override

Move the Servo to the provided angle.

await myServo.move(30);

For more information, see Servo component.

Implementation

@override
Future<void> move(int angle, {Map<String, dynamic>? extra}) async {
  final request = MoveRequest()
    ..name = name
    ..angleDeg = angle
    ..extra = extra?.toStruct() ?? Struct();
  await client.move(request);
}