updateOutline method
Future<bool>
updateOutline({
- required String uuid,
- required dynamic title,
- required dynamic pageIndex,
Updates an existing outline in the current document. Parameters:
uuidThe UUID of the outline to be updated.titleThe new title for the outline.pageIndexThe 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,
});
}