LocalizedText constructor

const LocalizedText(
  1. String key_, {
  2. Key? key,
  3. Map<String, Object?> args = const {},
  4. String? ns,
  5. TextStyle? style,
  6. TextAlign? textAlign,
  7. int? maxLines,
  8. TextOverflow? overflow,
  9. bool softWrap = true,
})

The string for key_ in the nearest LocalizationScope's current locale, with args filled in and the lookup kept to ns when given. Shows nothing without a scope. The rest are Text's own parameters.

Implementation

const LocalizedText(
  this.key_, {
  super.key,
  this.args = const {},
  this.ns,
  this.style,
  this.textAlign,
  this.maxLines,
  this.overflow,
  this.softWrap = true,
});