TransitIncident class
A transit incident describes disruptions on the transit network.
Disruptions scale from delays to service cancellations.
Constructors
- TransitIncident(String? summary, String? description, TransitIncidentType? type, TransitIncidentEffect? effect, DateTime? validFrom, DateTime? validUntil, String? url)
- Creates a new instance.
Properties
- description ↔ String?
-
A human readable description of the incident
getter/setter pair
- effect ↔ TransitIncidentEffect?
-
Effect of the incident.
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- summary ↔ String?
-
A human readable summary of the incident.
getter/setter pair
- type ↔ TransitIncidentType?
-
Type of the incident.
getter/setter pair
- url ↔ String?
-
Link to the original incident published at the agency website.
getter/setter pair
- validFrom ↔ DateTime?
-
Valid from.
getter/setter pair
- validUntil ↔ DateTime?
-
Valid until.
getter/setter pair
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.