copyWith method

HeaderSetting copyWith({
  1. double? topMargin,
  2. double? headerMaxHeight,
  3. double? headerMinHeight,
  4. Widget? headerBackground,
  5. double? elevation,
  6. dynamic headerLeftWidget,
  7. Widget? headerRightWidget,
  8. BorderRadius? borderRadius,
  9. Widget albumBuilder(
    1. BuildContext,
    2. BaseStateGallery<AssetPathEntity>,
    3. Widget?
    )?,
})

Implementation

HeaderSetting copyWith({
  double? topMargin,
  double? headerMaxHeight,
  double? headerMinHeight,
  Widget? headerBackground,
  double? elevation,
  dynamic headerLeftWidget,
  Widget? headerRightWidget,
  BorderRadius? borderRadius,
  Widget Function(BuildContext, BaseStateGallery<AssetPathEntity>, Widget?)?
      albumBuilder,
}) {
  return HeaderSetting(
    topMargin: topMargin ?? this.topMargin,
    headerMaxHeight: headerMaxHeight ?? this.headerMaxHeight,
    headerMinHeight: headerMinHeight ?? this.headerMinHeight,
    headerBackground: headerBackground ?? this.headerBackground,
    headerLeftWidget: headerLeftWidget ?? this.headerLeftWidget,
    headerRightWidget: headerRightWidget ?? this.headerRightWidget,
    albumBuilder: albumBuilder ?? this.albumBuilder,
    elevation: elevation ?? this.elevation,
    borderRadius: borderRadius ?? this.borderRadius,
  );
}