copyWith method
Implementation
SFNavLink copyWith({
String? label,
bool? isActive,
VoidCallback? onPress,
IconData? icon,
}) {
return SFNavLink(
label: label ?? this.label,
isActive: isActive ?? this.isActive,
onPress: onPress ?? this.onPress,
icon: icon ?? this.icon,
);
}