openFilePickerForCreate method
- @Deprecated('Use [openFileForCreate] instead.')
- File file
Use openFileForCreate instead.
Implementation
@Deprecated('Use [openFileForCreate] instead.')
Future<FileInfo?> openFilePickerForCreate(File file) async {
_logger.finest('openFilePickerForCreate($file)');
final result = await _channel.invokeMapMethod<String, String>(
'openFilePickerForCreate', {'path': file.absolute.path});
if (result == null) {
// User cancelled.
_logger.finer('User cancelled file picker.');
return null;
}
return _resultToFileInfo(result);
}