isExpanded property

bool get isExpanded

Gets or sets whether to expand the node or not.

//Create a new document.
PdfDocument document = PdfDocument();
//Create document bookmarks.
PdfBookmark bookmark = document.bookmarks.add('Page 1')
  ..destination = PdfDestination(document.pages.add(), Offset(20, 20))
  ..textStyle = [PdfTextStyle.bold]
  ..color = PdfColor(255, 0, 0);
//Get if is expanded.
bool expand = bookmark.isExpanded;
//Save the document.
List<int> bytes = await document.save();
//Dispose the document.
document.dispose();

Implementation

bool get isExpanded => super._isExpanded;
set isExpanded (bool value)

Implementation

set isExpanded(bool value) {
  super._isExpanded = value;
}