copyWith method

JuiSelectPickerUIConfig copyWith({
  1. BorderRadius? topBorderRadius,
  2. Color? backgroundColor,
  3. double? maxHeight,
  4. Color? barrierColor,
  5. bool? isScrollControlled,
  6. bool? enableDrag,
  7. TextStyle? itemTextStyle,
  8. Color? selectedItemColor,
  9. int? maxLines,
  10. bool? shrinkWrap,
})

Implementation

JuiSelectPickerUIConfig copyWith({
  BorderRadius? topBorderRadius,
  Color? backgroundColor,
  double? maxHeight,
  Color? barrierColor,
  bool? isScrollControlled,
  bool? enableDrag,
  TextStyle? itemTextStyle,
  Color? selectedItemColor,
  int? maxLines,
  bool? shrinkWrap,
}) {
  return JuiSelectPickerUIConfig(
    topBorderRadius: topBorderRadius ?? this.topBorderRadius,
    backgroundColor: backgroundColor ?? this.backgroundColor,
    maxHeight: maxHeight ?? this.maxHeight,
    barrierColor: barrierColor ?? this.barrierColor,
    isScrollControlled: isScrollControlled ?? this.isScrollControlled,
    enableDrag: enableDrag ?? this.enableDrag,
    itemTextStyle: itemTextStyle ?? this.itemTextStyle,
    selectedItemColor: selectedItemColor ?? this.selectedItemColor,
    maxLines: maxLines ?? this.maxLines,
    shrinkWrap: shrinkWrap ?? this.shrinkWrap,
  );
}