copyWith method

GetUserProfilePhotos copyWith({
  1. int? userId,
  2. int? offset,
  3. int? limit,
})

Copy model with modified properties.

Properties:

  • user_id: User identifier
  • offset: The number of photos to skip; must be non-negative
  • limit: The maximum number of photos to be returned; up to 100

Implementation

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