CapsuleStyle constructor
const
CapsuleStyle({
- LuckyFill? globeFill,
- LuckyFill? bodyFill,
- LuckyFill? knobFill,
- Color seamColor = const Color(0x33000000),
- LuckyCellStyle card = const LuckyCellStyle(background: LuckyFill.color(Color(0xFFFFFFFF)), borderRadius: 12),
- 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()});