copyWith method
Helper function
Implementation
PanelSetting copyWith({
double? maxHeight,
double? minHeight,
double? headerHeight,
double? thumbHandlerHeight,
double? snapingPoint,
Color? headerBackground,
Color? foregroundColor,
Color? backgroundColor,
SystemUiOverlayStyle? overlayStyle,
}) {
return PanelSetting(
maxHeight: maxHeight ?? this.maxHeight,
minHeight: minHeight ?? this.minHeight,
headerHeight: headerHeight ?? this.headerHeight,
thumbHandlerHeight: thumbHandlerHeight ?? this.thumbHandlerHeight,
snapingPoint: snapingPoint ?? this.snapingPoint,
headerBackground: headerBackground ?? this.headerBackground,
foregroundColor: foregroundColor ?? this.foregroundColor,
backgroundColor: backgroundColor ?? this.backgroundColor,
overlayStyle: overlayStyle ?? this.overlayStyle,
);
}