getAppearanceMatrix method

Matrix4 getAppearanceMatrix(
  1. Context context
)

Implementation

Matrix4 getAppearanceMatrix(Context context) {
  final translation = Vector3(0, 0, 0);
  final rotation = Quaternion(0, 0, 0, 0);
  final scale = Vector3(0, 0, 0);

  return context.canvas.getTransform()
    ..decompose(translation, rotation, scale)
    ..leftTranslate(-translation.x, -translation.y)
    ..translate(box!.x, box!.y);
}