trackDeepLink static method
Tracks a deep link or universal link with a single cross-platform API.
Call this after your Flutter router receives the incoming URL and opens the correct screen.
Implementation
static Future<void> trackDeepLink(String url) async {
final trimmedUrl = url.trim();
if (trimmedUrl.isEmpty) return;
await _channel.invokeMethod(MethodNames.trackDeepLink, {'url': trimmedUrl});
}