PTRouteInfo constructor

PTRouteInfo({
  1. required int routeId,
  2. String? routeShortName,
  3. String? routeLongName,
  4. required PTRouteType routeType,
  5. Color? routeColor,
  6. Color? routeTextColor,
  7. String? heading,
})

Create a PTRouteInfo.

API users do not typically create instances of this class directly.

Parameters

  • routeId: (int) Internal route identifier.
  • routeShortName: (String?) Short route identifier (e.g., "32").
  • routeLongName: (String?) More descriptive route name.
  • routeType: (PTRouteType) The route type.
  • routeColor: (Color?) Optional color associated with the route.
  • routeTextColor: (Color?) Optional text color to display on route background.
  • heading: (String?) Optional heading/destination for the route.

Implementation

PTRouteInfo({
  required this.routeId,
  this.routeShortName,
  this.routeLongName,
  required this.routeType,
  this.routeColor,
  this.routeTextColor,
  this.heading,
});