transform property

Matrix4 get transform

Gets the transformation matrix.

Implementation

Matrix4 get transform => Matrix4.identity()
  ..translate(_offset.dx, _offset.dy, 0)
  ..rotateZ(_rotation)
  ..scale(_scale, _scale, 1);