BsNavLink constructor

const BsNavLink({
  1. Key? key,
  2. String? label,
  3. Widget? child,
  4. bool active = false,
  5. bool disabled = false,
  6. VoidCallback? onPressed,
  7. EdgeInsetsGeometry? padding,
  8. Color? color,
  9. Color? activeColor,
})

Creates a BsNavLink widget.

Implementation

const BsNavLink({
  super.key,
  this.label,
  this.child,
  this.active = false,
  this.disabled = false,
  this.onPressed,
  this.padding,
  this.color,
  this.activeColor,
}) : assert(
       label != null || child != null,
       'Either label or child must be provided',
     );