copyWith method

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

Implementation

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