movePage method

Future<bool> movePage(
  1. int from,
  2. int to
)

Implementation

Future<bool> movePage(int from, int to) async {
  attach();
  final UPdfEdit? edit = _edit;
  if (edit == null) return false;
  final bool done = await edit.movePage(from, to);
  if (done) viewer.invalidateAll();
  notifyListeners();
  return done;
}