copyWith method
TTile<T>
copyWith({
- String? title,
- TextStyle? titleStyle,
- Color? backgroundColor,
- Color? borderColor,
- BorderRadius? borderRadius,
- Color? textColor,
- bool? enable,
- String? subtitle,
- TextStyle? subtitleStyle,
- String? detail,
- String? valueText,
- TextStyle? valueStyle,
- BoxDecoration? valueDecoration,
- Widget? prefixIcon,
- Widget? suffixIcon,
- EdgeInsets? padding,
- bool? showRadio,
- T? value,
- T? groupValue,
- ValueChanged<
T?> ? onChanged, - bool? showCheckbox,
- bool? isChecked,
- ValueChanged<
bool> ? onCheckboxChanged,
Implementation
TTile<T> copyWith({
String? title,
TextStyle? titleStyle,
Color? backgroundColor,
Color? borderColor,
BorderRadius? borderRadius,
Color? textColor,
bool? enable,
String? subtitle,
TextStyle? subtitleStyle,
String? detail,
String? valueText,
TextStyle? valueStyle,
BoxDecoration? valueDecoration,
Widget? prefixIcon,
Widget? suffixIcon,
EdgeInsets? padding,
bool? showRadio,
T? value,
T? groupValue,
ValueChanged<T?>? onChanged,
bool? showCheckbox,
bool? isChecked,
ValueChanged<bool>? onCheckboxChanged,
}) {
return TTile<T>(
title: title ?? this.title,
titleStyle: titleStyle ?? this.titleStyle,
backgroundColor: backgroundColor ?? this.backgroundColor,
borderColor: borderColor ?? this.borderColor,
borderRadius: borderRadius ?? this.borderRadius,
textColor: textColor ?? this.textColor,
enable: enable ?? this.enable,
subtitle: subtitle ?? this.subtitle,
subtitleStyle: subtitleStyle ?? this.subtitleStyle,
detail: detail ?? this.detail,
valueText: valueText ?? this.valueText,
valueStyle: valueStyle ?? this.valueStyle,
valueDecoration: valueDecoration ?? this.valueDecoration,
prefixIcon: prefixIcon ?? this.prefixIcon,
suffixIcon: suffixIcon ?? this.suffixIcon,
showRadio: showRadio ?? this.showRadio,
value: value ?? this.value,
groupValue: groupValue ?? this.groupValue,
onChanged: onChanged ?? this.onChanged,
padding: padding ?? this.padding,
showCheckbox: showCheckbox ?? this.showCheckbox,
isChecked: isChecked ?? this.isChecked,
onCheckboxChanged: onCheckboxChanged ?? this.onCheckboxChanged,
);
}