copyWith method

Position copyWith({
  1. int? row,
  2. int? col,
})

Implementation

Position copyWith({int? row, int? col}) => Position(row ?? this.row, col ?? this.col);