getDirectoryPath method

Future<String?> getDirectoryPath()

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.

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

Implementation

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