LotsStyle constructor

const LotsStyle({
  1. LuckyFill background = const LuckyFill.color(Color(0xFFF7EBD6)),
  2. LuckyFill cylinderFill = const LuckyFill.color(Color(0xFF9E342B)),
  3. LuckyFill backFill = const LuckyFill.color(Color(0xFF592820)),
  4. LuckyFill stickFill = const LuckyFill.color(Color(0xFFEBC582)),
  5. LuckyFill cardFill = const LuckyFill.color(Color(0xFFFFF8E1)),
  6. Color textColor = const Color(0xFF4E261B),
  7. double fontSize = 18,
  8. String? fontFamily,
  9. LotsPartPainter? backgroundPainter,
  10. LotsPartPainter? cylinderBackPainter,
  11. LotsPartPainter? cylinderFrontPainter,
  12. 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});