copyWith method
SearchAffiliatePrograms
copyWith({
- AffiliateType? affiliate,
- AffiliateProgramSortOrder? sortOrder,
- String? offset,
- int? limit,
Returns a copy with the given fields replaced. For a nullable
field pass a function, e.g. field: () => null to clear it.
Implementation
SearchAffiliatePrograms copyWith({
AffiliateType? affiliate,
AffiliateProgramSortOrder? sortOrder,
String? offset,
int? limit,
}) => SearchAffiliatePrograms(
affiliate: affiliate ?? this.affiliate,
sortOrder: sortOrder ?? this.sortOrder,
offset: offset ?? this.offset,
limit: limit ?? this.limit,
);