lengths method

  1. @override
Future<List<double>> lengths({
  1. Map<String, dynamic>? extra,
})
override

Get the lengths of the axes of the gantry in millimeters.

var lengths = await myGantry.lengths();

For more information, see Gantry component.

Implementation

@override
Future<List<double>> lengths({Map<String, dynamic>? extra}) async {
  final request = GetLengthsRequest()
    ..name = name
    ..extra = extra?.toStruct() ?? Struct();
  final response = await client.getLengths(request);
  return response.lengthsMm;
}