copyWith method

ChannelSettings copyWith({
  1. String? channelId,
  2. int? importance,
  3. bool? isCanBypassDns,
  4. bool? isCanShowBadge,
  5. bool? isShouldVibrate,
  6. bool? isShouldShowLights,
})

Implementation

ChannelSettings copyWith({
  String? channelId,
  int? importance,
  bool? isCanBypassDns,
  bool? isCanShowBadge,
  bool? isShouldVibrate,
  bool? isShouldShowLights,
}) {
  return ChannelSettings(
    channelId: channelId ?? this.channelId,
    importance: importance ?? this.importance,
    isCanBypassDns: isCanBypassDns ?? this.isCanBypassDns,
    isCanShowBadge: isCanShowBadge ?? this.isCanShowBadge,
    isShouldVibrate: isShouldVibrate ?? this.isShouldVibrate,
    isShouldShowLights: isShouldShowLights ?? this.isShouldShowLights,
  );
}