selectFolder static method

Future<String> selectFolder()

Implementation

static Future<String> selectFolder() async {
  try {
    await FilePicker.platform.getDirectoryPath().then((value){
      return value;
    });
  }
  on PlatformException catch (e) {
    console.error('Unsupported operation Select: $e');
  }
  catch (e) {
    console.error('Select: $e');
  }
  return '';
}