PTTranslation class Routes & Navigation

Public transport translation.

Holds a translated text and its BCP-47 language code. Used by PTAlert to provide localized header, description and URL translations.

See also:

  • PTAlert - alerts containing translations.

Constructors

PTTranslation.new(String text, String language)
PTTranslation.fromJson(Map<String, dynamic> json)
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
language String
The language code of the text message, in BCP-47 format.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
text String
The text message.
final

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