setDefaultSavingDirectory method

  1. @override
Future<FilesModel> setDefaultSavingDirectory()
override

Future method setDefaultSavingDirectory has FilesModel return Value

Implementation

@override
Future<FilesModel> setDefaultSavingDirectory() async {
  final value = await methodChannel.invokeMethod<String>(_SET_DEFAULT_PATH);
  if (value != null) {
    return FilesModel.fromMap(json.decode(value));
  } else {
    return FilesModel("", "");
  }
}