rotate method

void rotate(
  1. Offset oldOffset,
  2. Offset newOffset
)

Implementation

void rotate(Offset oldOffset, Offset newOffset) {
  if (_activeRotatePoint != null) {
    _angle +=
        _calculateAngleBetweenLines(oldOffset, center, newOffset, center);
  }
}