copyWith method

ChatStatisticsAdministratorActionsInfo copyWith({
  1. int? userId,
  2. int? deletedMessageCount,
  3. int? bannedUserCount,
  4. int? restrictedUserCount,
})

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,
    );