copyWith method
If the caller passes in a value for a parameter, use that value, otherwise use the value from this object.
A new instance of ZeroBottomSheetStyle with the same properties as the original instance, except for the properties that are explicitly overridden.
Implementation
ZeroBottomSheetStyle copyWith({
Color? backgroundColor,
Color? handleColor,
Color? barierColor,
BorderRadiusGeometry? borderRadius,
bool? useHandle,
double? elevation,
}) {
return ZeroBottomSheetStyle(
backgroundColor: backgroundColor ?? this.backgroundColor,
handleColor: handleColor ?? this.handleColor,
barierColor: barierColor ?? this.barierColor,
borderRadius: borderRadius ?? this.borderRadius,
useHandle: useHandle ?? this.useHandle,
elevation: elevation ?? this.elevation,
);
}