ObserverText constructor

ObserverText({
  1. Key? key,
  2. required String onData(
    1. BuildContext context
    )?,
  3. InlineSpan onDataRich(
    1. BuildContext context
    )?,
  4. TextStyle? style,
  5. StrutStyle? strutStyle,
  6. TextAlign? textAlign,
  7. TextDirection? textDirection,
  8. Locale? locale,
  9. bool? softWrap,
  10. TextOverflow? overflow,
  11. double? textScaleFactor,
  12. int? maxLines,
  13. String? semanticsLabel,
  14. TextWidthBasis? textWidthBasis,
  15. Transition? transition,
  16. dynamic isRich,
})

Implementation

ObserverText({
  Key? key,
  required this.onData,
  this.onDataRich,
  this.style,
  this.strutStyle,
  this.textAlign,
  this.textDirection,
  this.locale,
  this.softWrap,
  this.overflow,
  this.textScaleFactor,
  this.maxLines,
  this.semanticsLabel,
  this.textWidthBasis,
  this.transition,
  isRich,
})  : isRich = false,
      assert(onData != null),
      super(key: key);