avoidFerries property

bool get avoidFerries

Avoids ferry crossings when calculating routes.

When true, the routing engine avoids routes that include ferry segments.

Default is false.

Implementation

bool get avoidFerries {
  final OperationResult resultString = objectMethod(
    pointerId,
    'RoutePrefWrapper',
    'getAvoidFerries',
  );
  return resultString['result'];
}
set avoidFerries (bool value)

Avoids ferry crossings when calculating routes.

When true, the routing engine avoids routes that include ferry segments.

Parameters

  • value: True to avoid ferries, false to allow them.

Default is false.

Implementation

set avoidFerries(final bool value) {
  objectMethod(pointerId, 'RoutePrefWrapper', 'avoidferries', args: value);
}