copyWith method

TTile<T> copyWith({
  1. String? title,
  2. TextStyle? titleStyle,
  3. Color? backgroundColor,
  4. Color? borderColor,
  5. BorderRadius? borderRadius,
  6. Color? textColor,
  7. bool? enable,
  8. String? subtitle,
  9. TextStyle? subtitleStyle,
  10. String? detail,
  11. Widget? prefixIcon,
  12. Widget? suffixIcon,
  13. EdgeInsets? padding,
  14. bool? showRadio,
  15. T? value,
  16. T? groupValue,
  17. 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,
  );
}