CapsuleStyle constructor

const CapsuleStyle({
  1. LuckyFill? globeFill,
  2. LuckyFill? bodyFill,
  3. LuckyFill? knobFill,
  4. Color seamColor = const Color(0x33000000),
  5. LuckyCellStyle card = const LuckyCellStyle(background: LuckyFill.color(Color(0xFFFFFFFF)), borderRadius: 12),
  6. LuckyTextDefaults text = const LuckyTextDefaults(),
})

创建不可变配置;列表由调用方保持不可变。

Implementation

const CapsuleStyle(
    {this.globeFill,
    this.bodyFill,
    this.knobFill,
    this.seamColor = const Color(0x33000000),
    this.card = const LuckyCellStyle(
        background: LuckyFill.color(Color(0xFFFFFFFF)), borderRadius: 12),
    this.text = const LuckyTextDefaults()});