getTransform method Null safety

Float64List getTransform()

Returns the current transform including the combined result of all transform methods executed since the creation of this Canvas object, and respecting the save/restore history.

Methods that can change the current transform include translate, scale, rotate, skew, and transform. The restore method can also modify the current transform by restoring it to the same value it had before its associated save or saveLayer call.

Implementation

Float64List getTransform() {
  final Float64List matrix4 = Float64List(16);
  _getTransform(matrix4);
  return matrix4;
}