applyRedactions method

Future<int> applyRedactions(
  1. int pageIndex,
  2. List<Rect> areas
)

Implementation

Future<int> applyRedactions(int pageIndex, List<Rect> areas) async {
  attach();
  final UPdfEdit? edit = _edit;
  if (edit == null) return 0;
  final int removed = await UPdfRedactor(edit).apply(pageIndex, areas);
  viewer.invalidatePage(pageIndex);
  notifyListeners();
  return removed;
}