TransitTransport constructor

TransitTransport(
  1. TransitMode mode,
  2. String? name,
  3. String? headsign,
  4. String? category,
  5. Color? color,
  6. Color? textColor,
)

Creates a new instance.

  • mode Transit mode of transport in the route.
  • name Transit line name.
  • headsign Transit line headsign.
  • category Human readable transport category (such as Bus, Gondola, Tram, Train, ...)
  • color Color of the transport polyline and background for the transport name.
  • textColor Color of the transport name.

Implementation

TransitTransport(this.mode, this.name, this.headsign, this.category, this.color, this.textColor);