PTAlert class Route

Public transport alert.

Represents an alert (for example service disruption) and provides access to localized header, description and URL translations.

Constructors

PTAlert(int pointerId)

Properties

countDescriptionTextTranslations → int
Number of description text translations available for this alert.
no setter
countHeaderTextTranslations → int
Number of header text translations available for this alert.
no setter
countUrlTranslations → int
Number of URL translations available for this alert.
no setter
hashCode → int
The hash code for this object.
no setterinherited
pointerId → int
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

getDescriptionTextTranslation(int index) → PTTranslation?
Get description text translation by index.
getHeaderTextTranslation(int index) → PTTranslation?
Get header text translation by index.
getUrlTranslation(int index) → PTTranslation?
Get URL translation by index.
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