FileOpenHandler typedef

FileOpenHandler = FutureOr<bool> Function(FileInfo fileInfo, File file)

FileOpenHandlers are registered as callbacks to be called when the app is launched for a file selection. file (and fileInfo.file will be deleted after this function completes.)

The handler must return true if it has handled the file.

Implementation

typedef FileOpenHandler = FutureOr<bool> Function(FileInfo fileInfo, File file);