GlassNavigationLink<T> constructor
const
GlassNavigationLink<T> ({
- Key? key,
- WidgetBuilder? destination,
- T? value,
- Widget? title,
- Widget? subtitle,
- Widget? leading,
- Widget? trailing,
- EdgeInsetsGeometry? contentPadding,
- TextStyle? titleStyle,
- Widget? child,
- VoidCallback? onTap,
- bool enabled = true,
Creates a GlassNavigationLink.
Implementation
const GlassNavigationLink({
super.key,
this.destination,
this.value,
this.title,
this.subtitle,
this.leading,
this.trailing,
this.contentPadding,
this.titleStyle,
this.child,
this.onTap,
this.enabled = true,
}) : assert(
destination != null || value != null,
'Either destination or value must be provided.',
);