I use flutter_downloader (on Android) Everything is correct in debug and profile mode and works well, but in the release version, after hitting the download button, the program crashes and that's it!
A temporary solution could be:
@pragma('vm:entry-point') must be placed above the callback function to avoid tree shaking in release mode for Android.