downloadCallback function
Top-level background callback registered with flutter_downloader. Defined as top-level function to ensure clean native AOT/VM registration.
Implementation
@pragma('vm:entry-point')
void downloadCallback(String id, int status, int progress) {
final SendPort? send = IsolateNameServer.lookupPortByName('downloader_send_port');
send?.send([id, status, progress]);
}