PdfDestination constructor

PdfDestination(
  1. PdfPage page, [
  2. Offset? location
])

Initializes a new instance of the PdfDestination class with specified page and location.

Implementation

PdfDestination(PdfPage page, [Offset? location]) {
  _helper = PdfDestinationHelper(this);
  this.page = page;
  this.location = (location == null) ? Offset(0, _location.y) : location;
}