copyWith method

  1. @override
FastResponseAdAsset copyWith({
  1. String? small,
  2. String? medium,
  3. String? large,
})
override

Creates a new FastResponseAdAsset object by copying the existing object and optionally updating some of its properties.

small, medium, and large parameters can be used to override the corresponding properties, otherwise, the current values are used.

Implementation

@override
FastResponseAdAsset copyWith({
  String? small,
  String? medium,
  String? large,
}) {
  return FastResponseAdAsset(
    small: small ?? this.small,
    medium: medium ?? this.medium,
    large: large ?? this.large,
  );
}