registerFileOpenHandler method

void registerFileOpenHandler(
  1. FileOpenHandler fileOpenHandler
)

Registers the fileOpenHandler to be called when the app is launched with a file it should open. The fileOpenHandler will receive a file object which will be deleted once it returns.

Implementation

void registerFileOpenHandler(FileOpenHandler fileOpenHandler) =>
    _registerFilePickerEventHandler(
        FilePickerEventHandlerLambda(fileOpenHandler: fileOpenHandler));