padTop method

GridWorld padTop(
  1. int n
)

Copy this, adding padding on top.

Implementation

GridWorld padTop(int n) =>
    GridWorld.empty(_numRows + n, _numCols).._paste(n, 0, this);