getLink method

  1. @override
Future<void> getLink(
  1. void callback(
    1. DeepLinkRoute route
    )
)
override

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');
}