Link constructor

const Link({
  1. Key? key,
  2. required String url,
  3. required Widget child,
  4. VoidCallback? onError,
})

In case the URL is not openable (i.e., scheme is not supported in your device), it won't launch the URL and call the onError callback if provided. Otherwise, the URL will be launched within the app

Implementation

const Link({
  Key? key,
  required this.url,
  required this.child,
  this.onError,
}) : super(key: key);