flatten method

Future<int> flatten({
  1. bool widgetsOnly = false,
})

Implementation

Future<int> flatten({bool widgetsOnly = false}) async {
  attach();
  final UPdfEdit? edit = _edit;
  if (edit == null) return 0;
  final int count = await edit.flattenAnnotations(widgetsOnly: widgetsOnly);
  viewer.invalidateAll();
  notifyListeners();
  return count;
}