getLink method
Implementation
@override
Future<void> getLink(void Function(DeepLinkRoute route) callback) async {
methodChannel.setMethodCallHandler((call) async {
if (call.method == 'onDeepLink') {
callback(DeepLinkRoute.fromMap(call.arguments));
}
});
return await methodChannel.invokeMethod('getLink');
}