copyWith method

PanelSetting copyWith({
  1. double? topMargin,
  2. double? headerMaxHeight,
  3. double? headerMinHeight,
  4. double? minHeight,
  5. double? maxHeight,
  6. double? snapingPoint,
  7. Color? headerBackground,
  8. Color? foregroundColor,
  9. Color? backgroundColor,
})

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