copyAssetToLocalStorage method

  1. @override
Future<void> copyAssetToLocalStorage(
  1. String assetName,
  2. String targetName
)
override

Implementation

@override
Future<void> copyAssetToLocalStorage(String assetName, String targetName) async {
  final String targetPath = await _getLocalFilePath(targetName);
  await methodChannel.invokeMethod('copyAssetToLocal', {
    'assetName': 'assets/$assetName',
    'targetPath': targetPath,
  });
}