setCrop method

Future<bool> setCrop(
  1. int pageIndex,
  2. Rect box
)

Implementation

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