onStageTransformChange method

  1. @override
void onStageTransformChange(
  1. Matrix4 transform
)
override

Implementation

@override
void onStageTransformChange(Matrix4 transform) {
  if (!mounted) return;

  /// only redraw, if selected
  if (selected) {
    double newScale = transform.getMaxScaleOnAxis();
    if (stageScale != newScale) {
      startAnim(stageScale, newScale);
    }
  }
}