PulseTranslator class

Constructors

PulseTranslator(Map<String, String> _strings, {String? locale})
const

Properties

hashCode int
The hash code for this object.
no setterinherited
locale String?
BCP-47 tag this translator was built for; null when no translation was applied (source strings render unchanged).
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
optionLabel(PulseQuestion question, PulseQuestionOption option) String
questionHelptext(PulseQuestion question) String?
questionPrompt(PulseQuestion question) String
surveyDescription(PulseSurvey survey) String?
surveyName(PulseSurvey survey) String
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

build(Map<String, Map<String, String>>? translations, {String? preferred, String? deviceLocale}) PulseTranslator?
resolveLocale(Map<String, Map<String, String>>? translations, {String? preferred, String? deviceLocale}) String?
Resolution order: