StrikeThroughText constructor

StrikeThroughText(
  1. String data, {
  2. StrikeThroughTextType strikeThroughType = StrikeThroughTextType.horizontal,
  3. double strikeThroughThickness = 1.0,
  4. Color? strikeThroughColor,
  5. Key? key,
  6. TextStyle? style,
  7. StrutStyle? strutStyle,
  8. TextAlign? textAlign,
  9. TextDirection? textDirection,
  10. Locale? locale,
  11. bool? softWrap,
  12. TextOverflow? overflow,
  13. int? maxLines,
  14. String? semanticsLabel,
  15. TextWidthBasis? textWidthBasis,
  16. TextHeightBehavior? textHeightBehavior,
  17. Color? selectionColor,
})

Implementation

StrikeThroughText(
  super.data, {
  this.strikeThroughType = StrikeThroughTextType.horizontal,
  this.strikeThroughThickness = 1.0,
  this.strikeThroughColor,
  super.key,
  TextStyle? style,
  super.strutStyle,
  super.textAlign,
  super.textDirection,
  super.locale,
  super.softWrap,
  super.overflow,
  super.maxLines,
  super.semanticsLabel,
  super.textWidthBasis,
  super.textHeightBehavior,
  super.selectionColor,
}) : assert(strikeThroughThickness > 0.0),
     super(style: style?.copyWith(decoration: TextDecoration.none));