CopyMatrix constructor Null safety

CopyMatrix(
  1. AMatrix src
)

Implementation

CopyMatrix(AMatrix src)
    : rows = src.rows,
      columns = src.columns,
      _values = List.generate(src.rows * src.columns,
          (i) => src.get(i ~/ src.columns, i % src.columns),
          growable: false);