copyWith method

ChannelOptions copyWith({
  1. Set<ChannelPart>? parts,
  2. int? maxResults,
  3. String? onBehalfOfContentOwner,
  4. String? pageToken,
  5. String? regionCode,
  6. List<String>? id,
  7. String? hl,
  8. String? forUsername,
  9. bool? managedByMe,
  10. bool? mine,
})

Implementation

ChannelOptions copyWith({
  Set<ChannelPart>? parts,
  int? maxResults,
  String? onBehalfOfContentOwner,
  String? pageToken,
  String? regionCode,
  List<String>? id,
  String? hl,
  String? forUsername,
  bool? managedByMe,
  bool? mine,
}) =>
    ChannelOptions(
      parts: parts ?? this.parts,
      maxResults: maxResults ?? this.maxResults,
      onBehalfOfContentOwner:
          onBehalfOfContentOwner ?? this.onBehalfOfContentOwner,
      pageToken: pageToken ?? this.pageToken,
      regionCode: regionCode ?? this.regionCode,
      id: id ?? this.id,
      hl: hl ?? this.hl,
      forUsername: forUsername ?? this.forUsername,
      managedByMe: managedByMe ?? this.managedByMe,
      mine: mine ?? this.mine,
    );