BsNavLink constructor
const
BsNavLink({
- Key? key,
- String? label,
- Widget? child,
- bool active = false,
- bool disabled = false,
- VoidCallback? onPressed,
- EdgeInsetsGeometry? padding,
- Color? color,
- 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',
);