copyWith method

PanelSetting copyWith({
  1. double? maxHeight,
  2. double? minHeight,
  3. double? headerHeight,
  4. double? thumbHandlerHeight,
  5. double? snapingPoint,
  6. Color? headerBackground,
  7. Color? foregroundColor,
  8. Color? backgroundColor,
  9. SystemUiOverlayStyle? overlayStyle,
})

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,
  );
}