ModelSource.network constructor
Creates a network-based source (HTTPS/HTTP)
foreground controls Android foreground service:
- null (default): auto-detect based on file size (>500MB = foreground)
- true: always use foreground (shows notification)
- false: never use foreground
Implementation
factory ModelSource.network(String url, {String? authToken, bool? foreground}) =
NetworkSource;