download abstract method
Download the file on the remote side specified in remoteRelativePathOrId
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.
remoteRelativePathOrId
で指定されたリモート側のファイルをローカル上のlocalRelativePath
にダウンロードします。
どちらも各プラットフォーム上のルートフォルダに対する相対パスが渡されます。
戻り値としてダウンロード先のキャッシュのフルパスと実データを格納したLocalFileを返してください。
localRelativePath
が指定されない場合はバイトデータのみが取得されるようにしてください。
Implementation
Future<LocalFile> download(
String remoteRelativePathOrId, [
String? localRelativePath,
]);