openFile method

Future<XFile?> openFile({
  1. List<XTypeGroup>? acceptedTypeGroups,
  2. String? initialDirectory,
  3. String? confirmButtonText,
})

Opens a file dialog for loading files and returns a file path.

Returns null if the user cancels the operation.

Implementation

// TODO(stuartmorgan): Switch to FileDialogOptions if we ever need to
// duplicate this to add a parameter.
Future<XFile?> openFile({
  List<XTypeGroup>? acceptedTypeGroups,
  String? initialDirectory,
  String? confirmButtonText,
}) {
  throw UnimplementedError('openFile() has not been implemented.');
}