coptyWith method

Returns a new config where any null values are replaced by the corresponding values from other.

Implementation

ScrollBottomSheetConfig coptyWith(ScrollBottomSheetConfig? other) {
  if (other == null) return this;

  return ScrollBottomSheetConfig(
    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,
  );
}