LineDecoration constructor
const
LineDecoration({
- required List<
List< lineGradientColors,Color> > - List<
Color> ? incorrectGradientColors = const [Colors.red, Colors.black], - List<
Color> ? correctGradientColors = const [Colors.green, Colors.black], - double? strokeWidth = 20,
- StrokeCap? strokeCap = StrokeCap.round,
- 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),
});