cancelCurrentTool method
void
cancelCurrentTool()
取消当前工具的修改
Implementation
void cancelCurrentTool() {
if (_isBusy) return;
if (isCropTool(_activeTool)) {
// 恢复裁剪框到进入工具前的状态
_cropRect = _backupCropRect;
} else if (isRotateTool(_activeTool)) {
// 恢复旋转角度
_currentRotationAngle = _backupRotationAngle;
}
// 关闭工具菜单
_activeTool = EditToolsMenu.none;
_backupCropRect = null;
notifyListeners();
}