resolveLogoUrl static method
Turns the dashboard logoUrl into something loadable: absolute URLs
as is (the server already resolves uploaded logos to their public
URL), a "/path" under serverUrl, anything else null = the server's
default logo.
Implementation
static String? resolveLogoUrl(String? logoUrl, {String? serverUrl}) {
final u = (logoUrl ?? '').trim();
if (u.isEmpty) return null;
if (u.startsWith('http://') || u.startsWith('https://')) return u;
if (u.startsWith('/') && serverUrl != null && serverUrl.isNotEmpty) {
return '$serverUrl$u';
}
return null;
}