copyWith method
ChatBoost
copyWith({
- String? id,
- int? count,
- ChatBoostSource? source,
- int? startDate,
- int? expirationDate,
Returns a copy with the given fields replaced. For a nullable
field pass a function, e.g. field: () => null to clear it.
Implementation
ChatBoost copyWith({
String? id,
int? count,
ChatBoostSource? source,
int? startDate,
int? expirationDate,
}) =>
ChatBoost(
id: id ?? this.id,
count: count ?? this.count,
source: source ?? this.source,
startDate: startDate ?? this.startDate,
expirationDate: expirationDate ?? this.expirationDate,
);