onLaunchAttempt property

void Function(LaunchType type, Uri uri)? onLaunchAttempt
final

A callback function that is called before a launch attempt is made.

Provides the LaunchType and the URI that is about to be launched.

Implementation

final void Function(LaunchType type, Uri uri)? onLaunchAttempt;