copyWith method

  1. @override
FastResponseAdMerchant copyWith({
  1. String? name,
  2. String? url,
})
override

Creates a copy of this TModel but with the given fields replaced with the new values.

For example:

var myModel2 = myModel1.copyWith(age: 42);

Implementation

@override
FastResponseAdMerchant copyWith({
  String? name,
  String? logo,
  String? url,
}) {
  return FastResponseAdMerchant(
    name: name ?? this.name,
    logo: logo ?? this.logo,
    url: url ?? this.url,
  );
}