toString method

  1. @override
String toString()
override

Returns a string representation of the matrix.

Implementation

@override
String toString() {
  String r = '';
  const sep = ',';
  for (int i = 0; i < 9; i++) {
    r += '${elements[i]}$sep';
  }
  return r;
}