PTRoute class
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
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.
The color is represented as a hex string (e.g., "#fa6544").
The color is parsed to a Color object.
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.
The text color is represented as a hex string (e.g., "#fa6544").
The text color is parsed to a Color object.
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