PDFViewerScaffold constructor Null safety

const PDFViewerScaffold(
  1. {Key? key,
  2. required PreferredSizeWidget appBar,
  3. required String path,
  4. bool primary = true,
  5. ViewerParams viewerParams = const ViewerParams()}
)

Implementation

const PDFViewerScaffold({
  Key? key,
  required this.appBar,
  required this.path,
  this.primary = true,
  this.viewerParams = const ViewerParams(),
}) : super(key: key);