copyAssetToLocalStorage method
Copies the asset assetName to targetName on the local file system.
Implementation
@override
Future<void> copyAssetToLocalStorage(
String assetName, String targetName) async {
final resolved = await _resolve(targetName);
final data = await assetLoader('assets/$assetName');
final bytes = data.buffer.asUint8List(
data.offsetInBytes,
data.lengthInBytes,
);
await File(resolved).writeAsBytes(bytes);
}