copyWith method

ChannelModel copyWith({
  1. String? channelId,
  2. String? channelName,
  3. String? channelDescription,
  4. String? channelImage,
  5. bool? channelIsConnected,
  6. GetSocialAccountData? socialAccountData,
})

Implementation

ChannelModel copyWith({
  String? channelId,
  String? channelName,
  String? channelDescription,
  String? channelImage,
  bool? channelIsConnected,
  GetSocialAccountData? socialAccountData,
}) {
  return ChannelModel(
    channelId: channelId ?? this.channelId,
    channelName: channelName ?? this.channelName,
    channelDescription: channelDescription ?? this.channelDescription,
    channelImage: channelImage ?? this.channelImage,
    channelIsConnected: channelIsConnected ?? this.channelIsConnected,
    socialAccountData: socialAccountData ?? this.socialAccountData,
  );
}