copyWith method
Implementation
AtomicIconListItemModel copyWith({
String? title,
String? subtitle,
IconData? icon,
Color? iconColor,
Color? textColor,
Color? subTextColor,
VoidCallback? onTap,
bool? enabled,
}) {
return AtomicIconListItemModel(
title: title ?? this.title,
subtitle: subtitle ?? this.subtitle,
icon: icon ?? this.icon,
iconColor: iconColor ?? this.iconColor,
textColor: textColor ?? this.textColor,
subTextColor: subTextColor ?? this.subTextColor,
onTap: onTap ?? this.onTap,
enabled: enabled ?? this.enabled,
);
}