coptyWith method
Returns a new config where any null values are replaced
by the corresponding values from other.
Implementation
BottomSheetConfig coptyWith(BottomSheetConfig? other) {
if (other == null) return this;
return BottomSheetConfig(
duration: other.duration ?? duration,
curve: other.curve ?? curve,
fadeInDuration: other.fadeInDuration ?? fadeInDuration,
fadeInCurve: other.fadeInCurve ?? fadeInCurve,
fadeOutDuration: other.fadeOutDuration ?? fadeOutDuration,
fadeOutCurve: other.fadeOutCurve ?? fadeOutCurve,
initialFraction: other.initialFraction ?? initialFraction,
barrierColor: other.barrierColor ?? barrierColor,
sheetBuilder: other.sheetBuilder ?? sheetBuilder,
builder: other.builder ?? builder,
);
}