LineDecoration constructor

const LineDecoration({
  1. required List<List<Color>> lineGradientColors,
  2. List<Color>? incorrectGradientColors = const [Colors.red, Colors.black],
  3. List<Color>? correctGradientColors = const [Colors.green, Colors.black],
  4. double? strokeWidth = 20,
  5. StrokeCap? strokeCap = StrokeCap.round,
  6. TextStyle? lineTextStyle = const TextStyle(color: Colors.white, fontSize: 16, fontWeight: FontWeight.bold),
})

Implementation

const LineDecoration({
  required this.lineGradientColors,
  this.incorrectGradientColors = const [Colors.red, Colors.black],
  this.correctGradientColors = const [Colors.green, Colors.black],
  this.strokeWidth = 20,
  this.strokeCap = StrokeCap.round,
  this.lineTextStyle = const TextStyle(
      color: Colors.white, fontSize: 16, fontWeight: FontWeight.bold),
});