download abstract method

Future<LocalFile> download(
  1. String remoteRelativePath, [
  2. String? localRelativePath
])

Download the file on the remote side specified in remoteRelativePath to localRelativePath on the local.

Both are passed relative to the root folder on each platform.

Return LocalFile containing the full path of the cache to download and the actual data as the return value.

If localRelativePath is not specified, ensure that only byte data is retrieved.

remoteRelativePathで指定されたリモート側のファイルをローカル上のlocalRelativePathにダウンロードします。

どちらも各プラットフォーム上のルートフォルダに対する相対パスが渡されます。

戻り値としてダウンロード先のキャッシュのフルパスと実データを格納したLocalFileを返してください。

localRelativePathが指定されない場合はバイトデータのみが取得されるようにしてください。

Implementation

Future<LocalFile> download(
  String remoteRelativePath, [
  String? localRelativePath,
]);