copyWith method
SDropdownMenuStyle
copyWith({
- BorderRadius? borderRadius,
- double? elevation,
- Color? color,
- EdgeInsets? padding,
- BoxConstraints? constraints,
- Color? barrierColor,
- Offset? offset,
- bool? hideIcon,
- bool? leadingIcon,
- bool? showSelected,
- bool? isSmall,
- 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,
);
}