GlassNavigationLink<T> constructor

const GlassNavigationLink<T>({
  1. Key? key,
  2. WidgetBuilder? destination,
  3. T? value,
  4. Widget? title,
  5. Widget? subtitle,
  6. Widget? leading,
  7. Widget? trailing,
  8. EdgeInsetsGeometry? contentPadding,
  9. TextStyle? titleStyle,
  10. Widget? child,
  11. VoidCallback? onTap,
  12. 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.',
      );