copyWith method

SFNavLink copyWith({
  1. String? label,
  2. bool? isActive,
  3. VoidCallback? onPress,
  4. IconData? icon,
})

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,
  );
}