truckProfile property
Truck routing profile with vehicle-specific constraints.
Configure truck-specific routing preferences including dimensions (height, length, width), axle load, mass, max speed, fuel type, and plate number. Only used when transportMode is RouteTransportMode.lorry.
For caravan/trailer routing, use transportMode = RouteTransportMode.car with a truckProfile to apply size constraints while avoiding truck-specific road restrictions.
Default is null (no truck profile).
Implementation
TruckProfile get truckProfile {
final OperationResult resultString = objectMethod(
pointerId,
'RoutePrefWrapper',
'getTruckProfile',
);
return TruckProfile.fromJson(resultString['result']);
}
Truck routing profile with vehicle-specific constraints.
Configure truck-specific routing preferences including dimensions (height, length, width), axle load, mass, max speed, fuel type, and plate number. Only used when transportMode is RouteTransportMode.lorry.
For caravan/trailer routing, use transportMode = RouteTransportMode.car with a truckProfile to apply size constraints while avoiding truck-specific road restrictions.
Parameters
value: The truck profile configuration to use.
Default is null (no truck profile).
Implementation
set truckProfile(final TruckProfile value) {
objectMethod(
pointerId,
'RoutePrefWrapper',
'truckprofile',
args: value.toJson(),
);
}