copyWith method

FoundAffiliateProgram copyWith({
  1. int? botUserId,
  2. AffiliateProgramInfo? info,
})

Returns a copy with the given fields replaced. For a nullable field pass a function, e.g. field: () => null to clear it.

Implementation

FoundAffiliateProgram copyWith({
  int? botUserId,
  AffiliateProgramInfo? info,
}) => FoundAffiliateProgram(
  botUserId: botUserId ?? this.botUserId,
  info: info ?? this.info,
);