copyWith method
Creates a copy of the card with updated properties.
Implementation
TListCard copyWith({int? level, TListCardTheme? theme, dynamic icon, Widget? leading}) {
return TListCard(
title: title,
subTitle: subTitle,
imageUrl: imageUrl,
icon: icon ?? this.icon,
leading: leading ?? this.leading,
isSelected: isSelected,
isExpanded: isExpanded,
isDisabled: isDisabled,
multiple: multiple,
level: level ?? this.level,
onTap: onTap,
theme: theme ?? this.theme,
hasChildren: hasChildren,
children: children,
);
}