copyWith method

AdMediaView copyWith(
  1. AdView? view
)
override

Copy this with a new AdView

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