getMaxConcurrentDownloads method
Gets the maximum number of concurrent downloads supported by the platform. Returns null if the platform doesn't specify a limit.
Implementation
@override
Future<int?> getMaxConcurrentDownloads() async {
try {
final result = await methodChannel.invokeMethod<int>(
'getMaxConcurrentDownloads',
);
return result;
} catch (e) {
debugPrint('Error getting max concurrent downloads: $e');
// Default value
return 3;
}
}