playback property

Playback? get playback

Returns a Playback controller when the active data source supports it.

Playback is available for log or simulation data sources and provides controls such as pause, resume, seek and speed adjustments. Returns null when the current data source does not expose playback.

Returns

  • A Playback instance when available, otherwise null.

Implementation

static Playback? get playback {
  final OperationResult resultString = staticMethod(
    'PositionService',
    'getPlayback',
  );
  if (resultString['result'] == null) {
    return null;
  }
  return Playback.init(resultString['result']);
}