copyWith method

GetSupergroupMembers copyWith({
  1. int? supergroupId,
  2. SupergroupMembersFilter? filter()?,
  3. int? offset,
  4. 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

GetSupergroupMembers copyWith({
  int? supergroupId,
  SupergroupMembersFilter? Function()? filter,
  int? offset,
  int? limit,
}) => GetSupergroupMembers(
  supergroupId: supergroupId ?? this.supergroupId,
  filter: filter != null ? filter() : this.filter,
  offset: offset ?? this.offset,
  limit: limit ?? this.limit,
);