openFile method

void openFile(
  1. int platformViewId,
  2. String filePath,
  3. dynamic onOpen(
    1. bool
    )?
)

open file when platformview create filepath only support local path

Implementation

void openFile(int platformViewId, String filePath, Function(bool)? onOpen) {
  MethodChannel('wv.io/FileReader' + "_$platformViewId").invokeMethod("openFile", filePath).then((openSuccess) {
    onOpen?.call(openSuccess);
  });
}