copyWith method

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

返回替换非空参数的副本,例如 value.copyWith() 保留配置。

Implementation

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