isMoving method

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

Get if the Servo is currently moving.

var isItMoving = await myServo.isMoving();

For more information, see Servo component.

Implementation

@override
Future<bool> isMoving({Map<String, dynamic>? extra}) async {
  final request = IsMovingRequest()..name = name;
  final response = await client.isMoving(request);
  return response.isMoving;
}