movePage method
Moves a page from one index to another within the document. Parameters:
fromIndexThe index of the page to move.toIndexThe 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,
});
}