metrics property
Retrieves the record metrics.
This method provides various statistics about the current recording session, such as average speed, distance covered, elevation gain. Available only when the recorder is in RecorderStatus.recording status.
Returns
- RecordMetrics containing various statistics about the current recording session.
Implementation
RecordMetrics get metrics {
final OperationResult resultString = objectMethod(
_pointerId,
'Recorder',
'getMetrics',
);
return RecordMetrics.fromJson(resultString['result']);
}