copyWith method
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,
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,
);
}