copyWith method

SlotStyle copyWith({
  1. LuckyCellStyle? cell,
  2. LuckyTextDefaults? text,
})

返回仅替换非 null 参数的副本;例如 value.copyWith() 保留全部配置。

Implementation

SlotStyle copyWith({LuckyCellStyle? cell, LuckyTextDefaults? text}) =>
    SlotStyle(cell: cell ?? this.cell, text: text ?? this.text);