getContentAndDownloadTo method

Future<bool> getContentAndDownloadTo(
  1. FilesRequest request,
  2. String path
)

Sends a media request to the server and writes the input stream of returned media content into the specified destination.

Implementation

Future<bool> getContentAndDownloadTo(
  FilesRequest request,
  String path,
) async {
  return await _channel
      .invokeMethod('Files#ExecuteContentAndDownloadTo', <dynamic, dynamic>{
    'request': request.toJson(),
    'path': path,
  });
}