XDiagonalStrikethroughText constructor

const XDiagonalStrikethroughText(
  1. String text, {
  2. Key? key,
  3. TextStyle? style,
  4. Color lineColor = Colors.black,
  5. double strokeWidth = 2.0,
  6. XDiagonalStrikethroughType diagonalType = XDiagonalStrikethroughType.bottomTop,
})

Creates a text widget with a diagonal strikethrough line.

Implementation

const XDiagonalStrikethroughText(
  this.text, {
  super.key,
  this.style,
  this.lineColor = Colors.black,
  this.strokeWidth = 2.0,
  this.diagonalType = XDiagonalStrikethroughType.bottomTop,
});