RichTextProxy constructor

const RichTextProxy({
  1. required RichText child,
  2. required TextStyle textStyle,
  3. required TextAlign textAlign,
  4. required TextDirection textDirection,
  5. required Locale locale,
  6. required StrutStyle strutStyle,
  7. double textScaleFactor = 1.0,
  8. TextWidthBasis textWidthBasis = TextWidthBasis.parent,
  9. TextHeightBehavior? textHeightBehavior,
  10. Key? key,
})

Child argument should be an instance of RichText widget.

Implementation

const RichTextProxy(
    {required RichText child,
    required this.textStyle,
    required this.textAlign,
    required this.textDirection,
    required this.locale,
    required this.strutStyle,
    this.textScaleFactor = 1.0,
    this.textWidthBasis = TextWidthBasis.parent,
    this.textHeightBehavior,
    Key? key})
    : super(key: key, child: child);