getDirectoryPath method

Future<String?> getDirectoryPath({
  1. String? initialDirectory,
  2. String? confirmButtonText,
})

Opens a file dialog for loading directories and returns a directory 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<String?> getDirectoryPath({
  String? initialDirectory,
  String? confirmButtonText,
}) {
  throw UnimplementedError('getDirectoryPath() has not been implemented.');
}