copyWith method

AbsoluteContainer copyWith({
  1. Key? key,
  2. AlignmentGeometry? alignment,
  3. EdgeInsetsGeometry? padding,
  4. Color? color,
  5. Decoration? decoration,
  6. double? width,
  7. double? height,
  8. BoxConstraints? constraints,
  9. EdgeInsetsGeometry? margin,
  10. Matrix4? transform,
  11. AlignmentGeometry? transformAlignment,
  12. Widget? child,
  13. Clip clipBehavior = Clip.none,
})

Implementation

AbsoluteContainer copyWith({
  Key? key,
  AlignmentGeometry? alignment,
  EdgeInsetsGeometry? padding,
  Color? color,
  Decoration? decoration,
  double? width,
  double? height,
  BoxConstraints? constraints,
  EdgeInsetsGeometry? margin,
  Matrix4? transform,
  AlignmentGeometry? transformAlignment,
  Widget? child,
  Clip clipBehavior = Clip.none,
}) {
  return AbsoluteContainer(
    key: key ?? this.key,
    alignment: alignment ?? this.alignment,
    padding: padding ?? this.padding,
    color: color ?? this.color,
    decoration: decoration ?? this.decoration,
    width: width ?? this.width,
    height: height ?? this.height,
    constraints: constraints ?? this.constraints,
    margin: margin ?? this.margin,
    transform: transform ?? this.transform,
    transformAlignment: transformAlignment ?? this.transformAlignment,
    clipBehavior: clipBehavior,
    child: child ?? this.child,
  );
}