DividedTicket.singleChild constructor
const
DividedTicket.singleChild({
- Key? key,
- Color borderColor = Colors.red,
- Color backgroundColor = Colors.red,
- double cutRadius = 10,
- bool showCut = true,
- required Widget child,
- double cutRatio = 0.5,
- Color shadowColor = const Color(0x0D0B141E),
- double shadowElevation = 5,
- double borderRadius = 20,
- double dashHorizontalPadding = 10,
- double dashWidth = 5,
- double dashSpace = 5,
- double strokeWidth = 2,
Implementation
const DividedTicket.singleChild({
super.key,
this.borderColor = Colors.red,
this.backgroundColor = Colors.red,
this.cutRadius = 10,
this.showCut = true,
required Widget child,
this.cutRatio = 0.5,
this.shadowColor = const Color(0x0D0B141E),
this.shadowElevation = 5,
this.borderRadius = 20,
this.dashHorizontalPadding = 10,
this.dashWidth = 5,
this.dashSpace = 5,
this.strokeWidth = 2,
}) : bottom = null,
top = child;