updateOnScale method

  1. @override
void updateOnScale(
  1. double newScale
)
override

Implementation

@override
void updateOnScale(double newScale) {
  stageScale = newScale;

  /// stageInverseScale = stageScale < 1.0 ? (1.0 / stageScale) : 1.0;
  stageInverseScale = stageScale > 0.0 ? (1.0 / stageScale) : 1.0;
}