updateOutline method

Future<bool> updateOutline({
  1. required String uuid,
  2. required dynamic title,
  3. required dynamic pageIndex,
})

Updates an existing outline in the current document. Parameters:

  • uuid The UUID of the outline to be updated.
  • title The new title for the outline.
  • pageIndex The new page index that the outline will point to. example:
bool result = await document.updateOutline(
  uuid: outline.uuid,
  title: 'Updated Title',
  pageIndex: 1
);

Implementation

Future<bool> updateOutline({
  required String uuid,
  required title,
  required pageIndex,
}) async {
  return await _channel.invokeMethod('update_outline', {
    'uuid': uuid,
    'title': title,
    'page_index': pageIndex,
  });
}