copyWith method
ScrollAreaProps
copyWith({
- Component? child,
- String? height,
- String? width,
- String? maxHeight,
- String? maxWidth,
- ScrollDirectionVariant? direction,
- ScrollbarVisibilityVariant? scrollbar,
- ScrollbarStyleVariant? scrollbarStyle,
- String? trackColor,
- String? thumbColor,
- String? scrollbarSize,
- bool? showScrollShadows,
- String? padding,
- String? className,
- int? instanceId,
Implementation
ScrollAreaProps copyWith({
Component? child,
String? height,
String? width,
String? maxHeight,
String? maxWidth,
ScrollDirectionVariant? direction,
ScrollbarVisibilityVariant? scrollbar,
ScrollbarStyleVariant? scrollbarStyle,
String? trackColor,
String? thumbColor,
String? scrollbarSize,
bool? showScrollShadows,
String? padding,
String? className,
int? instanceId,
}) {
return ScrollAreaProps(
child: child ?? this.child,
height: height ?? this.height,
width: width ?? this.width,
maxHeight: maxHeight ?? this.maxHeight,
maxWidth: maxWidth ?? this.maxWidth,
direction: direction ?? this.direction,
scrollbar: scrollbar ?? this.scrollbar,
scrollbarStyle: scrollbarStyle ?? this.scrollbarStyle,
trackColor: trackColor ?? this.trackColor,
thumbColor: thumbColor ?? this.thumbColor,
scrollbarSize: scrollbarSize ?? this.scrollbarSize,
showScrollShadows: showScrollShadows ?? this.showScrollShadows,
padding: padding ?? this.padding,
className: className ?? this.className,
instanceId: instanceId ?? this.instanceId,
);
}