resolveFile method

  1. @override
Future<File> resolveFile(
  1. String assetId
)
override

A readable file for the asset, copying it out of the library where the platform requires it.

Implementation

@override
Future<io.File> resolveFile(String assetId) async {
  final path = await _channel.invokeMethod<String>('resolveFile', {
    'assetId': assetId,
  });
  return io.File(path!);
}