toString method

  1. @override
String toString()
override

A string representation of this object.

Some classes have a default textual representation, often paired with a static parse function (like int.parse). These classes will provide the textual representation as their string representation.

Other classes have no meaningful textual representation that a program will care about. Such classes will typically override toString to provide useful information when inspecting the object, mainly for debugging or logging.

Implementation

@override
String toString() {
  // kMScaleX, kMSkewX, kMTransX, kMSkewY, kMScaleY, kMTransY, kMPersp0, kMPersp1, kMPersp2
  final vals = get9();
  return '[${vals[0].toStringAsFixed(2)}, ${vals[1].toStringAsFixed(2)}, ${vals[2].toStringAsFixed(2)},\n'
      ' ${vals[3].toStringAsFixed(2)}, ${vals[4].toStringAsFixed(2)}, ${vals[5].toStringAsFixed(2)},\n'
      ' ${vals[6].toStringAsFixed(2)}, ${vals[7].toStringAsFixed(2)}, ${vals[8].toStringAsFixed(2)}]';
}