update method Null safety

  1. @override
void update(
  1. int dirt
)

Implementation

@override
void update(int dirt) {
  if (dirt & ComponentDirt.worldTransform != 0) {
    var rect =
        Rect.fromLTWH(width * -originX, height * -originY, width, height);
    path.reset();
    path.addRect(rect);
  }
}