copyWith method

AnyAnimatedButtonParams copyWith({
  1. Key? key,
  2. AlignmentGeometry? alignment,
  3. EdgeInsetsGeometry? padding,
  4. Color? color,
  5. Decoration? decoration,
  6. Decoration? foregroundDecoration,
  7. double? width,
  8. double? height,
  9. EdgeInsetsGeometry? margin,
  10. Matrix4? transform,
  11. 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,
  );
}