PdfDestination constructor Null safety

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]) {
  this.page = page;
  this.location = (location == null) ? Offset(0, _location.y) : location;
}