SashimiController constructor

SashimiController({
  1. required SashimiObject owner,
})

The controller of a SashimiObject.

This is used to control the position, size, scale and angle of the object in the logical world.

Implementation

SashimiController({
  required SashimiObject owner,
}) : super(
        anchor: Anchor.center,
        position: owner.position.xy,
        size: owner.size.xy,
        scale: owner.scale.xy,
        angle: owner.angle,
      ) {
  this.owner = owner..addListener(realign);
}