position method
override
Get the position of the axes in millimeters.
var position = await myGantry.position();
For more information, see Gantry component.
Implementation
@override
Future<List<double>> position({Map<String, dynamic>? extra}) async {
final request = GetPositionRequest()
..name = name
..extra = extra?.toStruct() ?? Struct();
final response = await client.getPosition(request);
return response.positionsMm;
}