copyWith method

DoubleSheetConfig copyWith({
  1. String? title,
  2. Widget? titleWidget,
  3. Widget? customHeaderWidget,
  4. double? initialChildSize,
  5. double? minChildSize,
  6. double? maxChildSize,
  7. Color? backgroundColor,
  8. Color? headerBackgroundColor,
  9. TextStyle? titleStyle,
  10. bool? enableDrag,
  11. bool? isDismissible,
  12. bool? showDragHandle,
  13. bool? allowFullScreen,
  14. BorderRadius? borderRadius,
  15. BorderRadius? headerRadius,
  16. bool? enableSynchronizedScrolling,
})

Implementation

DoubleSheetConfig copyWith({
  String? title,
  Widget? titleWidget,
  Widget? customHeaderWidget,
  double? initialChildSize,
  double? minChildSize,
  double? maxChildSize,
  Color? backgroundColor,
  Color? headerBackgroundColor,
  TextStyle? titleStyle,
  bool? enableDrag,
  bool? isDismissible,
  bool? showDragHandle,
  bool? allowFullScreen,
  BorderRadius? borderRadius,
  BorderRadius? headerRadius,
  bool? enableSynchronizedScrolling,
}) {
  return DoubleSheetConfig(
    title: title ?? this.title,
    titleWidget: titleWidget ?? this.titleWidget,
    customHeaderWidget: customHeaderWidget ?? this.customHeaderWidget,
    initialChildSize: initialChildSize ?? this.initialChildSize,
    minChildSize: minChildSize ?? this.minChildSize,
    maxChildSize: maxChildSize ?? this.maxChildSize,
    backgroundColor: backgroundColor ?? this.backgroundColor,
    headerBackgroundColor:
        headerBackgroundColor ?? this.headerBackgroundColor,
    titleStyle: titleStyle ?? this.titleStyle,
    enableDrag: enableDrag ?? this.enableDrag,
    isDismissible: isDismissible ?? this.isDismissible,
    showDragHandle: showDragHandle ?? this.showDragHandle,
    allowFullScreen: allowFullScreen ?? this.allowFullScreen,
    borderRadius: borderRadius ?? this.borderRadius,
    headerRadius: headerRadius ?? this.headerRadius,
    enableSynchronizedScrolling:
        enableSynchronizedScrolling ?? this.enableSynchronizedScrolling,
  );
}