copyWith method

AtomicIconListItemModel copyWith({
  1. String? title,
  2. String? subtitle,
  3. IconData? icon,
  4. Color? iconColor,
  5. Color? textColor,
  6. Color? subTextColor,
  7. VoidCallback? onTap,
  8. bool? enabled,
})

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