rotatePage method

Future<bool> rotatePage(
  1. int pageIndex,
  2. int degrees
)

Implementation

Future<bool> rotatePage(int pageIndex, int degrees) async {
  attach();
  final UPdfEdit? edit = _edit;
  if (edit == null) return false;
  await edit.rotatePage(pageIndex, degrees);
  viewer.invalidateAll();
  notifyListeners();
  return true;
}