copyWith method
GridButton
copyWith({
- int? x,
- int? y,
- int? col,
- int? row,
- LuckyCellStyle? style,
- List<
LuckyText> ? texts, - List<
GridImage> ? images, - GridCellPainter? painter,
返回替换非空参数的副本。
Implementation
GridButton copyWith(
{int? x,
int? y,
int? col,
int? row,
LuckyCellStyle? style,
List<LuckyText>? texts,
List<GridImage>? images,
GridCellPainter? painter}) =>
GridButton(
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,
painter: painter ?? this.painter);