copyWith method

  1. @override
TxCellThemeData copyWith({
  1. bool? dense,
  2. Color? iconColor,
  3. EdgeInsetsGeometry? padding,
  4. double? gap,
  5. double? minLeadingWidth,
  6. double? minLabelWidth,
  7. VisualDensity? visualDensity,
  8. TextStyle? labelTextStyle,
  9. TextStyle? contentTextStyle,
  10. double? minVerticalPadding,
  11. TextStyle? leadingTextStyle,
  12. TextAlign? contentTextAlign,
  13. int? contentMaxLines,
})
override

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

Implementation

@override
TxCellThemeData copyWith({
  bool? dense,
  Color? iconColor,
  EdgeInsetsGeometry? padding,
  double? gap,
  double? minLeadingWidth,
  double? minLabelWidth,
  VisualDensity? visualDensity,
  TextStyle? labelTextStyle,
  TextStyle? contentTextStyle,
  double? minVerticalPadding,
  TextStyle? leadingTextStyle,
  TextAlign? contentTextAlign,
  int? contentMaxLines,
}) {
  return TxCellThemeData(
    dense: dense ?? this.dense,
    iconColor: iconColor ?? this.iconColor,
    minVerticalPadding: minVerticalPadding ?? this.minVerticalPadding,
    padding: padding ?? this.padding,
    gap: gap ?? this.gap,
    minLeadingWidth: minLeadingWidth ?? this.minLeadingWidth,
    minLabelWidth: minLabelWidth ?? this.minLabelWidth,
    visualDensity: visualDensity ?? this.visualDensity,
    labelTextStyle: labelTextStyle ?? this.labelTextStyle,
    contentTextStyle: contentTextStyle ?? this.contentTextStyle,
    contentTextAlign: contentTextAlign ?? this.contentTextAlign,
    leadingTextStyle: leadingTextStyle ?? this.leadingTextStyle,
  );
}