copyWith method

TKeyValueTheme copyWith({
  1. TKeyValueMode? mode,
  2. TextStyle? keyStyle,
  3. TextStyle? labelStyle,
  4. TextStyle? valueStyle,
  5. double? minGridColWidth,
  6. bool? forceKeyValue,
  7. double? keyValueBreakPoint,
  8. Color? borderColor,
  9. bool? showLeftBorder,
  10. Alignment? alignment,
  11. EdgeInsets? narrowPadding,
  12. double? narrowItemBottomSpacing,
  13. int? narrowKeyFlex,
  14. int? narrowValueFlex,
  15. double? narrowGap,
  16. EdgeInsets? gridCellPadding,
  17. double? maxColWidthFraction,
  18. double? minFractionFixed,
  19. double? minFractionStructured,
  20. double? minFractionCompact,
  21. double? minFractionProse,
  22. double? additionalNaturalWidth,
  23. int? maxItemsPerRow,
  24. bool? gridInline,
  25. bool? columnar,
  26. int? columns,
  27. double? inlineKeyWidth,
  28. double? inlineKeyMaxWidth,
  29. Alignment? inlineKeyAlignment,
  30. bool? removeEmpty,
  31. bool? selectable,
  32. double? hSpacing,
  33. double? vSpacing,
  34. double? gap,
})

Implementation

TKeyValueTheme copyWith({
  TKeyValueMode? mode,
  TextStyle? keyStyle,
  TextStyle? labelStyle,
  TextStyle? valueStyle,
  double? minGridColWidth,
  bool? forceKeyValue,
  double? keyValueBreakPoint,
  Color? borderColor,
  bool? showLeftBorder,
  Alignment? alignment,
  EdgeInsets? narrowPadding,
  double? narrowItemBottomSpacing,
  int? narrowKeyFlex,
  int? narrowValueFlex,
  double? narrowGap,
  EdgeInsets? gridCellPadding,
  double? maxColWidthFraction,
  double? minFractionFixed,
  double? minFractionStructured,
  double? minFractionCompact,
  double? minFractionProse,
  double? additionalNaturalWidth,
  int? maxItemsPerRow,
  bool? gridInline,
  bool? columnar,
  int? columns,
  double? inlineKeyWidth,
  double? inlineKeyMaxWidth,
  Alignment? inlineKeyAlignment,
  bool? removeEmpty,
  bool? selectable,
  double? hSpacing,
  double? vSpacing,
  double? gap,
}) {
  return TKeyValueTheme(
    mode: mode ?? this.mode,
    keyStyle: keyStyle ?? this.keyStyle,
    labelStyle: labelStyle ?? this.labelStyle,
    valueStyle: valueStyle ?? this.valueStyle,
    minGridColWidth: minGridColWidth ?? this.minGridColWidth,
    forceKeyValue: forceKeyValue ?? this.forceKeyValue,
    keyValueBreakPoint: keyValueBreakPoint ?? this.keyValueBreakPoint,
    borderColor: borderColor ?? this.borderColor,
    showLeftBorder: showLeftBorder ?? this.showLeftBorder,
    alignment: alignment ?? this.alignment,
    narrowPadding: narrowPadding ?? this.narrowPadding,
    narrowItemBottomSpacing: narrowItemBottomSpacing ?? this.narrowItemBottomSpacing,
    narrowKeyFlex: narrowKeyFlex ?? this.narrowKeyFlex,
    narrowValueFlex: narrowValueFlex ?? this.narrowValueFlex,
    narrowGap: narrowGap ?? this.narrowGap,
    gridCellPadding: gridCellPadding ?? this.gridCellPadding,
    maxColWidthFraction: maxColWidthFraction ?? this.maxColWidthFraction,
    minFractionFixed: minFractionFixed ?? this.minFractionFixed,
    minFractionStructured: minFractionStructured ?? this.minFractionStructured,
    minFractionCompact: minFractionCompact ?? this.minFractionCompact,
    minFractionProse: minFractionProse ?? this.minFractionProse,
    additionalNaturalWidth: additionalNaturalWidth ?? this.additionalNaturalWidth,
    maxItemsPerRow: maxItemsPerRow ?? this.maxItemsPerRow,
    gridInline: gridInline ?? this.gridInline,
    columnar: columnar ?? this.columnar,
    columns: columns ?? this.columns,
    inlineKeyWidth: inlineKeyWidth ?? this.inlineKeyWidth,
    inlineKeyMaxWidth: inlineKeyMaxWidth ?? this.inlineKeyMaxWidth,
    inlineKeyAlignment: inlineKeyAlignment ?? this.inlineKeyAlignment,
    removeEmpty: removeEmpty ?? this.removeEmpty,
    selectable: selectable ?? this.selectable,
    hSpacing: hSpacing ?? _hSpacing,
    vSpacing: vSpacing ?? _vSpacing,
    gap: gap ?? _gap,
  );
}