Matrix2.fromList constructor Null safety

Matrix2.fromList(
  1. List<double> values
)

New matrix from values.

Implementation

factory Matrix2.fromList(List<double> values) =>
    Matrix2.zero()..setValues(values[0], values[1], values[2], values[3]);