DownloadManager constructor
DownloadManager({
- required SafeValueNotifier<
AVPTrackInfo?> currentTrackInfoNotifier, - required AliPlayerWidgetData? widgetDataGetter(),
- required void showSuccess(
- String path
- required void showInfo(
- String path
- required void showError(
- String path
Implementation
DownloadManager({
required SafeValueNotifier<AVPTrackInfo?> currentTrackInfoNotifier,
required AliPlayerWidgetData? Function() widgetDataGetter,
required void Function(String) showSuccess,
required void Function(String) showInfo,
required void Function(String) showError,
}) : _currentTrackInfoNotifier = currentTrackInfoNotifier,
_widgetDataGetter = widgetDataGetter,
_showSuccess = showSuccess,
_showInfo = showInfo,
_showError = showError {
_downloader = FlutterAliDownloader.init();
}