copyWith method

DraggablePanelTheme copyWith({
  1. double? draggableButtonWidth,
  2. double? draggableButtonHeight,
  3. Color? draggableButtonColor,
  4. Color? panelBackgroundColor,
  5. BoxBorder? panelBorder,
  6. BorderRadiusGeometry? panelBorderRadius,
  7. List<BoxShadow>? panelBoxShadow,
  8. Color? panelItemColor,
  9. Color? panelButtonColor,
  10. Color? foregroundColor,
})

Implementation

DraggablePanelTheme copyWith({
  double? draggableButtonWidth,
  double? draggableButtonHeight,
  Color? draggableButtonColor,
  Color? panelBackgroundColor,
  BoxBorder? panelBorder,
  BorderRadiusGeometry? panelBorderRadius,
  List<BoxShadow>? panelBoxShadow,
  Color? panelItemColor,
  Color? panelButtonColor,
  Color? foregroundColor,
}) {
  return DraggablePanelTheme(
    draggableButtonWidth: draggableButtonWidth ?? this.draggableButtonWidth,
    draggableButtonHeight:
        draggableButtonHeight ?? this.draggableButtonHeight,
    draggableButtonColor: draggableButtonColor ?? this.draggableButtonColor,
    panelBackgroundColor: panelBackgroundColor ?? this.panelBackgroundColor,
    panelBorder: panelBorder ?? this.panelBorder,
    panelBorderRadius: panelBorderRadius ?? this.panelBorderRadius,
    panelBoxShadow: panelBoxShadow ?? this.panelBoxShadow,
    panelItemColor: panelItemColor ?? this.panelItemColor,
    panelButtonColor: panelButtonColor ?? this.panelButtonColor,
    foregroundColor: foregroundColor ?? this.foregroundColor,
  );
}