Link constructor
const
Link({
- Key? key,
- required String url,
- required Widget child,
- 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);