StaticMatrix<T> constructor

StaticMatrix<T>({
  1. required int height,
  2. required int width,
  3. required T defaultValue,
})

Create a static matrix of specified size

Implementation

StaticMatrix(
    {required this.height, required this.width, required T defaultValue})
    : data = List<List<T>>.generate(
          height,
          (e) =>
              List<T>.generate(width, (e) => defaultValue, growable: false),
          growable: false);