stop method

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

Stop the motor immediately, without any gradual step down.

// Stop the motor.
await myMotor.stop();

For more information, see Motor component.

Implementation

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