getDirectoryPath method Null safety

Future<String?> getDirectoryPath(
  1. {String? dialogTitle}

Selects a directory and returns its absolute path.

On Android, this requires to be running on SDK 21 or above, else won't work. Returns null if folder path couldn't be resolved.

dialogTitle can be set to display a custom title on desktop platforms. It will be ignored on Web & IO.

Note: Some Android paths are protected, hence can't be accessed and will return / instead.


Future<String?> getDirectoryPath({String? dialogTitle}) async =>
    throw UnimplementedError('getDirectoryPath() has not been implemented.');