Automobile class

The Automobile class is used to retrieve the automobile's data.

A list getter will return the available automobile's list. listUpTo method will generate any number of data. In this case, the data can be repeated. The object getter will return a random automobile object. It will generate different result every time.

Constructors

Automobile()
factory

Properties

bhp double?
no setter
bodyType String?
no setter
engineInCC int?
no setter
fuelTankCapacity int?
no setter
fuelType String?
no setter
hashCode int
The hash code for this object.
no setterinherited
isTransmissionAutomatic bool?
getters to receive specific type only
no setter
list List<AutomobileModel>
custom getters to access automobile's list and object
no setter
mileage double?
no setter
model String?
no setter
name String?
no setter
object AutomobileModel
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
seatingCapacity int?
no setter
transmission String?
no setter

Methods

listUpTo([int max = 1]) List<AutomobileModel>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited