TranslationEntry constructor

const TranslationEntry({
  1. required String key,
  2. required String value,
})

Constructs the translated value with the key that is used as the identifier for the translated value as well as the translated value to display to the user.

Values can be parameterized by surrounding the parameter with curley braces. Example: 'Hello, {name}'.

Neither the key nor the value may be null.

Implementation

const TranslationEntry({
  required this.key,
  required this.value,
});