copyWith method

  1. @override
ThemeExtension<TxTileThemeData> copyWith({
  1. Color? tileColor,
  2. TextStyle? labelStyle,
  3. TextAlign? labelTextAlign,
  4. TextOverflow? labelOverflow,
  5. EdgeInsetsGeometry? padding,
  6. Axis? layoutDirection,
  7. double? horizontalGap,
  8. bool? dense,
  9. ShapeBorder? shape,
  10. Color? iconColor,
  11. Color? textColor,
  12. TextStyle? leadingAndTrailingTextStyle,
  13. double? minLeadingWidth,
  14. double? minLabelWidth,
  15. double? minVerticalPadding,
  16. VisualDensity? visualDensity,
  17. bool? colon,
  18. Color? focusColor,
})
override

Creates a copy of this theme extension with the given fields replaced by the non-null parameter values.

Implementation

@override
ThemeExtension<TxTileThemeData> copyWith({
  Color? tileColor,
  TextStyle? labelStyle,
  TextAlign? labelTextAlign,
  TextOverflow? labelOverflow,
  EdgeInsetsGeometry? padding,
  Axis? layoutDirection,
  double? horizontalGap,
  bool? dense,
  ShapeBorder? shape,
  Color? iconColor,
  Color? textColor,
  TextStyle? leadingAndTrailingTextStyle,
  double? minLeadingWidth,
  double? minLabelWidth,
  double? minVerticalPadding,
  VisualDensity? visualDensity,
  bool? colon,
  Color? focusColor,
}) {
  return TxTileThemeData(
    tileColor: tileColor ?? this.tileColor,
    labelStyle: labelStyle ?? this.labelStyle,
    labelTextAlign: labelTextAlign ?? this.labelTextAlign,
    labelOverflow: labelOverflow ?? this.labelOverflow,
    padding: padding ?? this.padding,
    layoutDirection: layoutDirection ?? this.layoutDirection,
    horizontalGap: horizontalGap ?? this.horizontalGap,
    dense: dense ?? this.dense,
    shape: shape ?? this.shape,
    iconColor: iconColor ?? this.iconColor,
    textColor: textColor ?? this.textColor,
    leadingAndTrailingTextStyle:
        leadingAndTrailingTextStyle ?? this.leadingAndTrailingTextStyle,
    minLeadingWidth: minLeadingWidth ?? this.minLeadingWidth,
    minVerticalPadding: minVerticalPadding ?? this.minVerticalPadding,
    visualDensity: visualDensity ?? this.visualDensity,
    minLabelWidth: minLabelWidth ?? this.minLabelWidth,
    colon: colon ?? this.colon,
    focusColor: focusColor ?? this.focusColor,
  );
}