getVirtualFileReceiver method
Returns virtual file receiver for given format or null
if virtual data
for the format is not available. If format is not specified returns
receiver for format with highest priority (if any).
Usually it is not needed to call this method directly, as getFile will automatically call it if virtual data is available.
Implementation
@override
Future<VirtualFileReceiver?> getVirtualFileReceiver({
FileFormat? format,
}) async {
for (final item in items) {
final receiver = await item.getVirtualFileReceiver(format: format);
if (receiver != null) {
return receiver;
}
}
return null;
}