Link constructor
const
Link({
- required String to,
- required Widget child,
- Map<
String, String> ? params, - URLSearchParams? query,
- Object? state,
- bool replace = false,
- bool enabled = true,
- VoidCallback? onTap,
- HitTestBehavior behavior = HitTestBehavior.deferToChild,
- Key? key,
Creates a navigation link.
Set enabled to false to disable interaction while preserving child.
Implementation
const Link({
required this.to,
required this.child,
this.params,
this.query,
this.state,
this.replace = false,
this.enabled = true,
this.onTap,
this.behavior = HitTestBehavior.deferToChild,
super.key,
});