openFileManager method

  1. @override
Future<bool> openFileManager({
  1. AndroidConfig? androidConfig,
  2. IosConfig? iosConfig,
})
override

Implementation

@override
Future<bool> openFileManager({
  AndroidConfig? androidConfig,
  IosConfig? iosConfig,
}) async {
  final data = <String, dynamic>{};
  if (Platform.isAndroid && androidConfig != null) {
    data['folderType'] = androidConfig.folderType.name;
  } else if (Platform.isIOS && iosConfig != null) {
    data['subFolderPath'] = iosConfig.subFolderPath;
  }
  final version =
      await methodChannel.invokeMethod<bool?>('openFileManager', data);
  return version ?? false;
}