Grid<T>.filled constructor

Grid<T>.filled({
  1. required int cellSize,
  2. required int width,
  3. required int height,
  4. required T value,
})

Implementation

Grid.filled({required this.cellSize, required this.width, required this.height, required T value})
    : _data = List.generate(width * height, (_) => value);