copyWith method

AdImageView copyWith(
  1. AdView? view
)
override

Copy this with a new AdView

Implementation

AdImageView copyWith(AdView? view) {
  if (view == null) return this;
  assert(view is AdImageView);
  return AdImageView(
    decoration: view.decoration ?? decoration,
    size: view.height ?? view.width ?? height ?? width,
    margin: view.margin ?? margin,
    padding: view.padding ?? padding,
    elevation: view.elevation ?? elevation,
    elevationColor: view.elevationColor ?? elevation as Color?,
  );
}