downloadUrlFor method
- String platform
Download URL for platform key (e.g. android, windows, ios),
when the payload contains a urls map.
Implementation
Uri? downloadUrlFor(String platform) {
final urls = (lastPayload['urls'] as Map<String, dynamic>?) ?? const {};
final value = urls[platform];
return value is String && value.isNotEmpty ? Uri.tryParse(value) : null;
}