rotate method

void rotate({
  1. bool right = true,
})

Implementation

void rotate({bool right = true}) {
  if (_layerKey.currentState == null) {
    return;
  }
  setState(() {
    _editActionDetails!.rotate(
      right ? pi / 2.0 : -pi / 2.0,
      _layerKey.currentState!.layoutRect,
      BoxFit.contain,
    );
    _editorConfig!.editActionDetailsIsChanged?.call(_editActionDetails);
  });
}