Vehicle class
Contains the type of vehicle used on this line. This may include the following properties:
name
contains the name of the vehicle on this line. eg. "Subway."type
contains the type of vehicle that runs on this line. See the VehicleType documentation for a complete list of supported values.icon
contains the URL for an icon associated with this vehicle type.localIcon
contains the URL for the icon associated with this vehicle type, based on the local transport signage.
Constructors
- Vehicle({String? name, VehicleType? type, String? icon, String? localIcon})
-
const
-
Vehicle.fromMap(Map<
String, dynamic> map) -
factory
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- icon → String?
-
Contains the URL for an icon associated with this vehicle type.
final
- localIcon → String?
-
Contains the URL for the icon associated with this
vehicle type, based on the local transport signage.
final
- name → String?
-
Contains the name of the vehicle on this line. eg. "Subway."
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- type → VehicleType?
-
Contains the type of vehicle that runs on this line.
final
Methods
-
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