route property

Route? get route

The route used by this playback when the data source is a simulation.

Returns null when the playback is not a simulation or when no route is available.

Implementation

Route? get route {
  final OperationResult resultString = objectMethod(
    pointerId,
    'PlaybackContainer',
    'getRoute',
  );
  final int retVal = resultString['result'];
  if (retVal == -1) {
    return null;
  }
  return Route.init(retVal);
}