TextTr constructor

TextTr(
  1. String data, {
  2. Key? key,
  3. TextStyle? style,
  4. TextAlign? textAlign,
  5. int? maxLines,
  6. TextOverflow? overflow,
  7. bool? softWrap,
  8. TextDirection? textDirection,
  9. Locale? locale,
  10. String? semanticsLabel,
  11. Map<String, String>? arguments,
})

Creates a TextTr widget.

The data parameter is the localization key that will be translated.

The arguments parameter is an optional map of key-value pairs for string interpolation in the translated text.

All standard Text parameters are supported.

Implementation

TextTr(
  String data, {
  super.key,
  super.style,
  super.textAlign,
  super.maxLines,
  super.overflow,
  super.softWrap,
  super.textDirection,
  super.locale,
  super.semanticsLabel,
  this.arguments,
}) : super(data.tr(arguments: arguments));