copyWith method
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,
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,
);
}