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