copyWith method

SDropdownMenuStyle copyWith({
  1. BorderRadius? borderRadius,
  2. double? elevation,
  3. Color? color,
  4. EdgeInsets? padding,
  5. BoxConstraints? constraints,
  6. Color? barrierColor,
  7. Offset? offset,
  8. bool? hideIcon,
  9. bool? leadingIcon,
  10. bool? showSelected,
  11. bool? isSmall,
  12. BoxBorder? border,
})

Creates a new style object with same properties as this style object except for properties that were provided in the function.

Implementation

SDropdownMenuStyle copyWith({
  final BorderRadius? borderRadius,
  final double? elevation,
  final Color? color,
  final EdgeInsets? padding,
  final BoxConstraints? constraints,
  final Color? barrierColor,
  final Offset? offset,
  final bool? hideIcon,
  final bool? leadingIcon,
  final bool? showSelected,
  final bool? isSmall,
  final BoxBorder? border,
}) {
  return SDropdownMenuStyle(
    elevation: elevation ?? this.elevation,
    color: color ?? this.color,
    barrierColor: barrierColor ?? this.barrierColor,
    constraints: constraints ?? this.constraints,
    borderRadius: borderRadius ?? this.borderRadius,
    padding: padding ?? this.padding,
    offset: offset ?? this.offset,
    hideIcon: hideIcon ?? this.hideIcon,
    leadingIcon: leadingIcon ?? this.leadingIcon,
    showSelected: showSelected ?? this.showSelected,
    isSmall: isSmall ?? this.isSmall,
    border: border ?? this.border,
  );
}