copyWith method

TListCard copyWith({
  1. int? level,
  2. TListCardTheme? theme,
})

Implementation

TListCard copyWith({int? level, TListCardTheme? theme}) {
  return TListCard(
    title: title,
    subTitle: subTitle,
    isSelected: isSelected,
    isExpanded: isExpanded,
    isDisabled: isDisabled,
    multiple: multiple,
    level: level ?? this.level,
    onTap: onTap,
    theme: theme ?? this.theme,
    children: children,
  );
}