FluidText constructor

FluidText(
  1. String data, {
  2. required int minWidth,
  3. required int maxWidth,
  4. required double minFontSize,
  5. required double maxFontSize,
  6. Key? key,
  7. TextStyle? style,
  8. StrutStyle? strutStyle,
  9. TextAlign? textAlign,
  10. TextDirection? textDirection,
  11. Locale? locale,
  12. bool? softWrap,
  13. TextOverflow? overflow,
  14. double? textScaleFactor,
  15. int? maxLines,
  16. String? semanticsLabel,
  17. TextWidthBasis? textWidthBasis,
  18. TextHeightBehavior? textHeightBehavior,
})

Implementation

FluidText(
  super.data, {
  required this.minWidth,
  required this.maxWidth,
  required this.minFontSize,
  required this.maxFontSize,
  super.key,
  TextStyle? style,
  super.strutStyle,
  super.textAlign,
  super.textDirection,
  super.locale,
  super.softWrap,
  super.overflow,
  super.textScaleFactor,
  super.maxLines,
  super.semanticsLabel,
  super.textWidthBasis,
  super.textHeightBehavior,
}) : _style = style ?? TextStyle();