copyWith method

GetGroupsInCommon copyWith({
  1. int? userId,
  2. int? offsetChatId,
  3. 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

GetGroupsInCommon copyWith({
  int? userId,
  int? offsetChatId,
  int? limit,
}) =>
    GetGroupsInCommon(
      userId: userId ?? this.userId,
      offsetChatId: offsetChatId ?? this.offsetChatId,
      limit: limit ?? this.limit,
    );