PlanVehicle class
Constructors
-
PlanVehicle({String id = '', String? mode, RouteEndpoint? start, RouteEndpoint? end, List<
int> ? capacity, List<String> ? skills, TimeWindow? shift, List<PlanBreak> ? breaks, int? maxStops, int? maxTrips, int? reloadS, PlanCost? cost}) -
const
-
PlanVehicle.fromJson(Map<
String, dynamic> json) -
factory
Properties
-
breaks
→ List<
PlanBreak> ? -
final
-
capacity
→ List<
int> ? -
E.g.
20parcels, or20, 500parcels and kgfinal - cost → PlanCost?
-
final
- end → RouteEndpoint?
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- id → String
-
final
- maxStops → int?
-
final
- maxTrips → int?
-
Capacity applies per trip; MaxStops counts every trip together.
final
- mode → String?
-
Driving (default) | motor_scooter | bicycle | foot | truck
final
- reloadS → int?
-
The time at base between trips (default 600).
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- shift → TimeWindow?
-
final
-
skills
→ List<
String> ? -
final
- start → RouteEndpoint?
-
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited