copyWith method
Implementation
AdMediaView copyWith(AdView? view) {
if (view == null) return this;
return AdMediaView(
decoration: view.decoration ?? decoration,
height: view.height ?? height,
width: view.width ?? width,
margin: view.margin ?? margin,
padding: view.padding ?? padding,
elevation: view.elevation ?? elevation,
elevationColor: view.elevationColor ?? elevationColor,
);
}