ZwapTranslation class

Inheritance

Constructors

ZwapTranslation(String key, {bool enableEdit = true, bool useLongPress = false, String decorate(String)?, Map<String, dynamic> arguments = const {}, bool castLineBreaks = true})
The key property is used to retrive the string from the ZwapTranslation.translate function

Properties

arguments → Map<String, dynamic>
The arguments property is used to insert dynamic values inside the string
final
castLineBreaks → bool
If true the '\n' character will be replaced with a new line character
final
enableEdit → bool
If this value is false, the text will not be editable even if the ZwapTranslation is in edit mode
final
hashCode → int
The hash code for this object.
no setterinherited
key → String
This value will be used to retrieve the translation from the translate function
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
useLongPress → bool
If true the edit action is triggered by a long press instead of a simple tap
final

Methods

allMatches(String string, [int start = 0]) → Iterable<Match>
Matches this pattern against the string repeatedly.
override
getTranslation() → String
matchAsPrefix(String string, [int start = 0]) → Match?
Matches this pattern against the start of string.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
override

Operators

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

Static Properties

enableEdits ↔ bool
If this value is true, the text will be editable
getter/setter pair
showEditTextModal ↔ Future<void> Function(BuildContext context, void updateValue(), String textKey)?
getter/setter pair
translate ↔ String? Function(String, Map<String, dynamic> arguments)?
Used to translate keys, must be not null and not return null
getter/setter pair