copyWith method

DisplayModeBarStyle copyWith({
  1. Color? backgroundColor,
  2. Color? selectedIconColor,
  3. Color? unselectedIconColor,
  4. Color? selectedBackgroundColor,
  5. double? iconSize,
  6. double? borderRadius,
  7. EdgeInsetsGeometry? padding,
  8. double? spacing,
  9. double? elevation,
  10. Alignment? position,
  11. Color? tooltipBackgroundColor,
  12. TextStyle? tooltipTextStyle,
  13. bool? showTooltip,
})

Implementation

DisplayModeBarStyle copyWith({
  Color? backgroundColor,
  Color? selectedIconColor,
  Color? unselectedIconColor,
  Color? selectedBackgroundColor,
  double? iconSize,
  double? borderRadius,
  EdgeInsetsGeometry? padding,
  double? spacing,
  double? elevation,
  Alignment? position,
  Color? tooltipBackgroundColor,
  TextStyle? tooltipTextStyle,
  bool? showTooltip,
}) {
  return DisplayModeBarStyle(
    backgroundColor: backgroundColor ?? this.backgroundColor,
    selectedIconColor: selectedIconColor ?? this.selectedIconColor,
    unselectedIconColor: unselectedIconColor ?? this.unselectedIconColor,
    selectedBackgroundColor:
        selectedBackgroundColor ?? this.selectedBackgroundColor,
    iconSize: iconSize ?? this.iconSize,
    borderRadius: borderRadius ?? this.borderRadius,
    padding: padding ?? this.padding,
    spacing: spacing ?? this.spacing,
    elevation: elevation ?? this.elevation,
    position: position ?? this.position,
    tooltipBackgroundColor:
        tooltipBackgroundColor ?? this.tooltipBackgroundColor,
    tooltipTextStyle: tooltipTextStyle ?? this.tooltipTextStyle,
    showTooltip: showTooltip ?? this.showTooltip,
  );
}