VehicleSpecificationScooterBuilder class abstract
This class constructs a VehicleSpecification for a scooter.
Constructors
- VehicleSpecificationScooterBuilder()
-
Creates a new instance of this class.
factory
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
build(
) → VehicleSpecification - Builds the VehicleSpecification object for TransportMode.scooter with the specifications taken from the VehicleSpecificationScooterBuilder object.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
withEngineSizeInCubicCentimeters(
int engineSizeInCubicCentimeters) → VehicleSpecificationScooterBuilder - Sets the vehicle engine size in cubic centimeters.
-
withOccupancy(
int occupancy) → VehicleSpecificationScooterBuilder - Sets the vehicle occupants number.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited