getOutlineRoot method
Gets the outline data of the current document.
example:
CPDFOutline outline = await document.getOutlineRoot();
Implementation
Future<CPDFOutline?> getOutlineRoot() async {
final result = await _channel.invokeMethod('get_outline_root');
if (result is Map) {
final outlineMap = Map<String, dynamic>.from(result);
return CPDFOutline.fromJson(outlineMap);
} else {
return null;
}
}