copyWith method
HeaderSetting
copyWith({
- double? topMargin,
- double? headerMaxHeight,
- double? headerMinHeight,
- Widget? headerBackground,
- double? elevation,
- dynamic headerLeftWidget,
- Widget? headerRightWidget,
- BorderRadius? borderRadius,
- Widget albumBuilder(
- BuildContext,
- BaseStateGallery<
AssetPathEntity> , - 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,
);
}