isWithinBounds method

  1. @nonVirtual
bool isWithinBounds(
  1. int row,
  2. int col
)

Tests if row and col are within the bounds of this matrix.

Implementation

@nonVirtual
bool isWithinBounds(int row, int col) =>
    0 <= row && row < rowCount && 0 <= col && col < colCount;