PTAlertTranslation class Maps & 3D Scenes
A single translation of a PTAlertInfo text field.
WARNING: The language tag comes verbatim from the GTFS-RT feed and may be inaccurate — some feeds tag the same untranslated text under multiple languages. Treat it as a hint and fall back to the first entry of the translation list when no exact match exists (see PTAlertInfo.selectTranslation).
Also see:
- PTAlertInfo.urls — The URL translations for a specific alert.
- PTAlertInfo.headerTexts — The header text translations for a specific alert.
- PTAlertInfo.descriptionTexts — The description text translations for a specific alert.
- PTAlertInfo.causeDetails — The cause detail translations for a specific alert.
- PTAlertInfo.effectDetails — The effect detail translations for a specific alert.
Constructors
- PTAlertTranslation({required String language, required String text})
- Create a PTAlertTranslation.
Properties
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.
inherited