copyWith method
NativeContainerStyle
copyWith({
- Color? backgroundColor,
- OverlayShape? shape,
- double? borderRadius,
- OverlayPosition? position,
- int? xOffset,
- int? yOffset,
- double? width,
- double? height,
- NativeEdgeInsets? padding,
Creates a copy of this container style with the given fields replaced.
Implementation
NativeContainerStyle copyWith({
Color? backgroundColor,
OverlayShape? shape,
double? borderRadius,
OverlayPosition? position,
int? xOffset,
int? yOffset,
double? width,
double? height,
NativeEdgeInsets? padding,
}) {
return NativeContainerStyle(
backgroundColor: backgroundColor ?? this.backgroundColor,
shape: shape ?? this.shape,
borderRadius: borderRadius ?? this.borderRadius,
position: position ?? this.position,
xOffset: xOffset ?? this.xOffset,
yOffset: yOffset ?? this.yOffset,
width: width ?? this.width,
height: height ?? this.height,
padding: padding ?? this.padding,
);
}