deepLinkUtils constant
String
const deepLinkUtils
Implementation
static const String deepLinkUtils = '''/// Standard utilities for custom deep linking checks.
class DeepLinkUtils {
DeepLinkUtils._();
/// Checks if URL structure matches a custom scheme or is standard Web link.
static bool isValidDeepLink(String urlString) {
try {
final uri = Uri.parse(urlString);
return uri.hasScheme && uri.hasAbsolutePath;
} catch (_) {
return false;
}
}
}
''';