openFiles method

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

Opens a file dialog for loading files and returns a list of file paths.

Returns an empty list if the user cancels the operation.

Implementation

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