pickFile static method

Future<String?> pickFile({
  1. OpenFileDialogParams? params,
})

Displays a dialog for picking a file.

Returns the path of the picked file or null if operation was cancelled. Throws exception on error.

Implementation

static Future<String?> pickFile({OpenFileDialogParams? params}) {
  return _channel.invokeMethod('pickFile', params?.toJson());
}