getDefaultSavingDirectory method

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

Future method getDefaultSavingDirectory has FilesModel return Value

Implementation

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