handleUrl method

  1. @override
Future<bool> handleUrl(
  1. String url
)
override

Resolve a link opened inside the app.

Implementation

@override
Future<bool> handleUrl(String url) async {
  try {
    final handled = await methodChannel.invokeMethod<bool>('handleUrl', {
      'url': url,
    });
    return handled ?? false;
  } on PlatformException catch (e) {
    throw GrovsException(e.message ?? 'Failed to handle URL', code: e.code);
  }
}