isMoving method

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

Get if the Motor is currently moving.

// Check whether the motor is moving.
var moving = await myMotor.isMoving();

For more information, see Motor component.

Implementation

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