copyWith method
Helper function
Implementation
PanelSetting copyWith({
double? topMargin,
double? headerMaxHeight,
double? headerMinHeight,
double? minHeight,
double? maxHeight,
double? snapingPoint,
Color? headerBackground,
Color? foregroundColor,
Color? backgroundColor,
}) {
return PanelSetting(
topMargin: topMargin ?? this.topMargin,
headerMaxHeight: headerMaxHeight ?? this.headerMaxHeight,
headerMinHeight: headerMinHeight ?? this.headerMinHeight,
minHeight: minHeight ?? this.minHeight,
maxHeight: maxHeight ?? this.maxHeight,
snapingPoint: snapingPoint ?? this.snapingPoint,
headerBackground: headerBackground ?? this.headerBackground,
foregroundColor: foregroundColor ?? this.foregroundColor,
backgroundColor: backgroundColor ?? this.backgroundColor,
);
}