PTAgency constructor

PTAgency({
  1. required int id,
  2. required String name,
  3. String? url,
})

Create a PTAgency.

API users do not typically create instances of this class directly. Get instances from PTStopInfo.agencies.

Parameters

  • id: (int) Numeric agency identifier.
  • name: (String) Agency display name.
  • url: (String?) Optional agency website URL.

Implementation

PTAgency({required this.id, required this.name, this.url});