copyWith method

TButtonTheme copyWith({
  1. TWidgetTheme? baseTheme,
  2. TButtonType? type,
  3. TButtonSize? size,
  4. Color? color,
  5. OutlinedBorder? shape,
  6. double? borderRadius,
  7. double? elevation,
  8. Duration? animationDuration,
  9. Curve? animationCurve,
  10. double? scaleOnPress,
  11. WidgetStateProperty<TextStyle?>? textStyle,
  12. WidgetStateProperty<Color?>? shadowColor,
})

Implementation

TButtonTheme copyWith({
  TWidgetTheme? baseTheme,
  TButtonType? type,
  TButtonSize? size,
  Color? color,
  OutlinedBorder? shape,
  double? borderRadius,
  double? elevation,
  Duration? animationDuration,
  Curve? animationCurve,
  double? scaleOnPress,
  WidgetStateProperty<TextStyle?>? textStyle,
  WidgetStateProperty<Color?>? shadowColor,
}) {
  return TButtonTheme(
    baseTheme: baseTheme ?? this.baseTheme,
    type: type ?? this.type,
    size: size ?? this.size,
    color: color ?? this.color,
    shape: shape ?? this.shape,
    borderRadius: borderRadius ?? this.borderRadius,
    elevation: elevation ?? this.elevation,
    animationDuration: animationDuration ?? this.animationDuration,
    animationCurve: animationCurve ?? this.animationCurve,
    scaleOnPress: scaleOnPress ?? this.scaleOnPress,
    textStyle: textStyle ?? this.textStyle,
    shadowColor: shadowColor ?? this.shadowColor,
  );
}