copyWith method

TButtonGroupTheme copyWith({
  1. TButtonGroupType? type,
  2. TButtonSize? size,
  3. Color? color,
  4. double? spacing,
  5. double? borderRadius,
  6. bool? enableBoxedMode,
  7. EdgeInsetsGeometry? boxedPadding,
  8. BoxDecoration? boxedDecoration,
  9. double? separatorWidth,
  10. Color? separatorColor,
})

Implementation

TButtonGroupTheme copyWith({
  TButtonGroupType? type,
  TButtonSize? size,
  Color? color,
  double? spacing,
  double? borderRadius,
  bool? enableBoxedMode,
  EdgeInsetsGeometry? boxedPadding,
  BoxDecoration? boxedDecoration,
  double? separatorWidth,
  Color? separatorColor,
}) {
  return TButtonGroupTheme(
    type: type ?? this.type,
    size: size ?? this.size,
    color: color ?? this.color,
    spacing: spacing ?? this.spacing,
    borderRadius: borderRadius ?? this.borderRadius,
    enableBoxedMode: enableBoxedMode ?? this.enableBoxedMode,
    boxedPadding: boxedPadding ?? this.boxedPadding,
    boxedDecoration: boxedDecoration ?? this.boxedDecoration,
    separatorWidth: separatorWidth ?? this.separatorWidth,
    separatorColor: separatorColor ?? this.separatorColor,
  );
}