copyWith method

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

Implementation

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