copyWith method

AndroidNotificationSettings copyWith({
  1. bool? areNotificationsEnabled,
  2. int? importance,
  3. List<ChannelSettings>? channelSettings,
})

Implementation

AndroidNotificationSettings copyWith({
  bool? areNotificationsEnabled,
  int? importance,
  List<ChannelSettings>? channelSettings,
}) {
  return AndroidNotificationSettings(
    areNotificationsEnabled:
        areNotificationsEnabled ?? this.areNotificationsEnabled,
    importance: importance ?? this.importance,
    channelSettings: channelSettings ?? this.channelSettings,
  );
}