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