copyWith method
Returns a copy with the given fields replaced. For a nullable
field pass a function, e.g. field: () => null to clear it.
Implementation
ChatStatisticsAdministratorActionsInfo copyWith({
int? userId,
int? deletedMessageCount,
int? bannedUserCount,
int? restrictedUserCount,
}) =>
ChatStatisticsAdministratorActionsInfo(
userId: userId ?? this.userId,
deletedMessageCount: deletedMessageCount ?? this.deletedMessageCount,
bannedUserCount: bannedUserCount ?? this.bannedUserCount,
restrictedUserCount: restrictedUserCount ?? this.restrictedUserCount,
);