stop method

  1. @override
Future<void> stop({
  1. Map<String, dynamic>? extra,
})
override

Stop the Servo. It is assumed that the servo stops immediately.

await myServo.stop();

For more information, see Servo component.

Implementation

@override
Future<void> stop({Map<String, dynamic>? extra}) async {
  final request = StopRequest()
    ..name = name
    ..extra = extra?.toStruct() ?? Struct();
  await client.stop(request);
}