isSecureUrl function
Returns true if input is a string starting with https:// (case-insensitive).
Implementation
bool isSecureUrl(Object? input) {
String? url;
if (input == null) {
return false;
} else if (input is String) {
url = input.toLowerCase();
}
return url?.startsWith('https://') ?? false;
}