LotsStyle constructor
const
LotsStyle({
- LuckyFill background = const LuckyFill.color(Color(0xFFF7EBD6)),
- LuckyFill cylinderFill = const LuckyFill.color(Color(0xFF9E342B)),
- LuckyFill backFill = const LuckyFill.color(Color(0xFF592820)),
- LuckyFill stickFill = const LuckyFill.color(Color(0xFFEBC582)),
- LuckyFill cardFill = const LuckyFill.color(Color(0xFFFFF8E1)),
- Color textColor = const Color(0xFF4E261B),
- double fontSize = 18,
- String? fontFamily,
- LotsPartPainter? backgroundPainter,
- LotsPartPainter? cylinderBackPainter,
- LotsPartPainter? cylinderFrontPainter,
- LotsStickBodyPainter? stickPainter,
创建配置;列表在使用期间不可修改。
Implementation
const LotsStyle(
{this.background = const LuckyFill.color(Color(0xFFF7EBD6)),
this.cylinderFill = const LuckyFill.color(Color(0xFF9E342B)),
this.backFill = const LuckyFill.color(Color(0xFF592820)),
this.stickFill = const LuckyFill.color(Color(0xFFEBC582)),
this.cardFill = const LuckyFill.color(Color(0xFFFFF8E1)),
this.textColor = const Color(0xFF4E261B),
this.fontSize = 18,
this.fontFamily,
this.backgroundPainter,
this.cylinderBackPainter,
this.cylinderFrontPainter,
this.stickPainter});