StrikeThroughText constructor
StrikeThroughText( - String data, {
- StrikeThroughTextType strikeThroughType = StrikeThroughTextType.horizontal,
- double strikeThroughThickness = 1.0,
- Color? strikeThroughColor,
- Key? key,
- TextStyle? style,
- StrutStyle? strutStyle,
- TextAlign? textAlign,
- TextDirection? textDirection,
- Locale? locale,
- bool? softWrap,
- TextOverflow? overflow,
- int? maxLines,
- String? semanticsLabel,
- TextWidthBasis? textWidthBasis,
- TextHeightBehavior? textHeightBehavior,
- 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));