loopWithGridNode method
Loop over a raster using a function of type: (gridNode) { ...processing goes in here }
Implementation
@override
void loopWithGridNode(Function gridNodeFunction) {
if (_rows == null || _cols == null) {
throw StateError("rows and cols are null");
}
for (var r = 0; r < _rows!; r++) {
for (var c = 0; c < _cols!; c++) {
gridNodeFunction(GridNode(this, c, r));
}
}
}