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,
- Widget? prefixIcon,
- Widget? suffixIcon,
- EdgeInsets? padding,
- bool? showRadio,
- T? value,
- T? groupValue,
- ValueChanged<
T?> ? onChanged,
Implementation
TTile<T> copyWith({
String? title,
TextStyle? titleStyle,
Color? backgroundColor,
Color? borderColor,
BorderRadius? borderRadius,
Color? textColor,
bool? enable,
String? subtitle,
TextStyle? subtitleStyle,
String? detail,
Widget? prefixIcon,
Widget? suffixIcon,
EdgeInsets? padding,
bool? showRadio,
T? value,
T? groupValue,
ValueChanged<T?>? onChanged,
}) {
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,
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,
);
}