copyWith method
返回替换非空参数的副本。
Implementation
GridPrize copyWith(
{int? x,
int? y,
int? col,
int? row,
LuckyCellStyle? style,
List<LuckyText>? texts,
List<GridImage>? images,
double? weight,
bool? disabled,
GridCellPainter? painter}) =>
GridPrize(
x: x ?? this.x,
y: y ?? this.y,
col: col ?? this.col,
row: row ?? this.row,
style: style ?? this.style,
texts: texts ?? this.texts,
images: images ?? this.images,
weight: weight ?? this.weight,
disabled: disabled ?? this.disabled,
painter: painter ?? this.painter);