copyWith method
GetSupergroupMembers
copyWith({
- int? supergroupId,
- SupergroupMembersFilter? filter()?,
- int? offset,
- 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,
);