copyWith method
TListCardTheme
copyWith({})
Implementation
TListCardTheme copyWith({
Color? backgroundColor,
Color? selectedBackgroundColor,
Color? disabledBackgroundColor,
EdgeInsets? padding,
double? levelIndentation,
bool? showSelectionIndicator,
Widget Function(bool isExpanded, bool isDisabled)? expansionIndicatorBuilder,
Widget Function(bool multiple, bool isSelected, bool isDisabled)? selectionIndicatorBuilder,
Widget Function(String title, String? subTitle, String? imageUrl, bool isSelected, bool isDisabled)? contentBuilder,
}) {
return TListCardTheme(
backgroundColor: backgroundColor ?? this.backgroundColor,
selectedBackgroundColor: selectedBackgroundColor ?? this.selectedBackgroundColor,
disabledBackgroundColor: disabledBackgroundColor ?? this.disabledBackgroundColor,
padding: padding ?? this.padding,
levelIndentation: levelIndentation ?? this.levelIndentation,
showSelectionIndicator: showSelectionIndicator ?? this.showSelectionIndicator,
expansionIndicatorBuilder: expansionIndicatorBuilder ?? this.expansionIndicatorBuilder,
selectionIndicatorBuilder: selectionIndicatorBuilder ?? this.selectionIndicatorBuilder,
contentBuilder: contentBuilder ?? this.contentBuilder,
);
}