copyWith method

ScrollAreaProps copyWith({
  1. Component? child,
  2. String? height,
  3. String? width,
  4. String? maxHeight,
  5. String? maxWidth,
  6. ScrollDirectionVariant? direction,
  7. ScrollbarVisibilityVariant? scrollbar,
  8. ScrollbarStyleVariant? scrollbarStyle,
  9. String? trackColor,
  10. String? thumbColor,
  11. String? scrollbarSize,
  12. bool? showScrollShadows,
  13. String? padding,
  14. String? className,
  15. 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,
  );
}