linksTakePending method

  1. @override
Future<List<String>> linksTakePending()
override

Deep links (Nexus links). Native code sees every URL that opens the app before Flutter does; it queues them until Dart asks, so a cold-start link is never lost to the engine starting first. Returns the queued URLs and switches native to live delivery via onLinkOpened.

Implementation

@override
Future<List<String>> linksTakePending() async {
  try {
    final res = await methodChannel.invokeMethod<List<dynamic>>('linksTakePending');
    return (res ?? const []).whereType<String>().toList();
  } catch (_) {
    return const []; // no native link capture on this platform
  }
}