getFixed method Null safety

  1. @override
Value? getFixed(
  1. int r,
  2. int c
)
override

Implementation

@override
getFixed(int r, int c) {
  if (c > r) {
    return Value.zero;
  } else if (c == r) {
    return Value.oneF;
  } else {
    return null;
  }
}