copyWith method

AnnouncementBannerConfiguration copyWith({
  1. String? hashId,
  2. bool? isDismissible,
  3. bool? isEnabled,
  4. String? message,
  5. AnnouncementBannerConfigurationVisibility? visibility,
})

Implementation

AnnouncementBannerConfiguration copyWith(
    {String? hashId,
    bool? isDismissible,
    bool? isEnabled,
    String? message,
    AnnouncementBannerConfigurationVisibility? visibility}) {
  return AnnouncementBannerConfiguration(
    hashId: hashId ?? this.hashId,
    isDismissible: isDismissible ?? this.isDismissible,
    isEnabled: isEnabled ?? this.isEnabled,
    message: message ?? this.message,
    visibility: visibility ?? this.visibility,
  );
}