movePage method

Future<bool> movePage({
  1. required int fromIndex,
  2. required int toIndex,
})

Moves a page from one index to another within the document. Parameters:

  • fromIndex The index of the page to move.
  • toIndex The index to which the page should be moved. example:
bool result = await document.movePage(fromIndex: 0, toIndex: 1);

Implementation

Future<bool> movePage({
  required int fromIndex,
  required int toIndex,
}) async {
  return await _channel.invokeMethod('move_page', {
    'from_index': fromIndex,
    'to_index': toIndex,
  });
}