PTRouteInfo class Maps & 3D Scene
This class represents a public transport route.
It contains the route's ID, short name, long name, type, color, text color, and an optional heading. The route type is represented by the PTRouteType enum.
Constructors
- PTRouteInfo({required int routeId, String? routeShortName, String? routeLongName, required PTRouteType routeType, Color? routeColor, Color? routeTextColor, String? heading})
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- heading → String?
-
An optional heading for the route.
This can be null if not provided.
final
- routeColor → Color?
-
The color of the route, represented as a Color object.
This can be null if not provided.
final
- routeId → int
-
The ID of the route.
final
- routeLongName → String?
-
The long name of the route.
final
- routeShortName → String?
-
The short name of the route.
final
- routeTextColor → Color?
-
The text color of the route, represented as a Color object.
This can be null if not provided.
final
- routeType → PTRouteType
-
The type of the route, represented by the PTRouteType enum.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
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