set method Null safety

  1. @override
void set(
  1. int row,
  2. int col,
  3. Value v
)
override

Implementation

@override
void set(int row, int col, Value v) {
  final f = getFixed(row, col);
  if (f == null) {
    _m.set(row, col, v);
  } else {
    assert(
        v == f, 'Attempt to set fixed part of triangle to $v ($f expected)');
  }
}