openFile method Null safety

Future<PdfDocument> openFile(
  1. String filePath
)

Opening the specified file. For Web, filePath can be relative path from index.html or any arbitrary URL but it may be restricted by CORS.

Implementation

static Future<PdfDocument> openFile(String filePath) => PdfRenderPlatform.instance.openFile(filePath);