copyWith method
AnyAnimatedButtonParams
copyWith({
- Key? key,
- AlignmentGeometry? alignment,
- EdgeInsetsGeometry? padding,
- Color? color,
- Decoration? decoration,
- Decoration? foregroundDecoration,
- double? width,
- double? height,
- EdgeInsetsGeometry? margin,
- Matrix4? transform,
- Widget? child,
Implementation
AnyAnimatedButtonParams copyWith({
Key? key,
AlignmentGeometry? alignment,
EdgeInsetsGeometry? padding,
Color? color,
Decoration? decoration,
Decoration? foregroundDecoration,
double? width,
double? height,
EdgeInsetsGeometry? margin,
Matrix4? transform,
Widget? child,
}) {
return AnyAnimatedButtonParams(
key: key ?? this.key,
alignment: alignment ?? this.alignment,
padding: padding ?? this.padding,
color: color ?? this.color,
decoration: decoration ?? this.decoration,
foregroundDecoration: foregroundDecoration ?? this.foregroundDecoration,
width: width ?? this.width,
height: height ?? this.height,
margin: margin ?? this.margin,
transform: transform ?? this.transform,
child: child ?? this.child,
);
}