copyWith method

SwiperTheme copyWith({
  1. ValueGetter<bool?>? expands,
  2. ValueGetter<bool?>? draggable,
  3. ValueGetter<bool?>? barrierDismissible,
  4. ValueGetter<WidgetBuilder?>? backdropBuilder,
  5. ValueGetter<bool?>? useSafeArea,
  6. ValueGetter<bool?>? showDragHandle,
  7. ValueGetter<BorderRadiusGeometry?>? borderRadius,
  8. ValueGetter<Size?>? dragHandleSize,
  9. ValueGetter<bool?>? transformBackdrop,
  10. ValueGetter<double?>? surfaceOpacity,
  11. ValueGetter<double?>? surfaceBlur,
  12. ValueGetter<Color?>? barrierColor,
  13. ValueGetter<HitTestBehavior?>? behavior,
})

Implementation

SwiperTheme copyWith({
  ValueGetter<bool?>? expands,
  ValueGetter<bool?>? draggable,
  ValueGetter<bool?>? barrierDismissible,
  ValueGetter<WidgetBuilder?>? backdropBuilder,
  ValueGetter<bool?>? useSafeArea,
  ValueGetter<bool?>? showDragHandle,
  ValueGetter<BorderRadiusGeometry?>? borderRadius,
  ValueGetter<Size?>? dragHandleSize,
  ValueGetter<bool?>? transformBackdrop,
  ValueGetter<double?>? surfaceOpacity,
  ValueGetter<double?>? surfaceBlur,
  ValueGetter<Color?>? barrierColor,
  ValueGetter<HitTestBehavior?>? behavior,
}) {
  return SwiperTheme(
    expands: expands == null ? this.expands : expands(),
    draggable: draggable == null ? this.draggable : draggable(),
    barrierDismissible: barrierDismissible == null
        ? this.barrierDismissible
        : barrierDismissible(),
    backdropBuilder:
        backdropBuilder == null ? this.backdropBuilder : backdropBuilder(),
    useSafeArea: useSafeArea == null ? this.useSafeArea : useSafeArea(),
    showDragHandle:
        showDragHandle == null ? this.showDragHandle : showDragHandle(),
    borderRadius:
        borderRadius == null ? this.borderRadius : borderRadius(),
    dragHandleSize:
        dragHandleSize == null ? this.dragHandleSize : dragHandleSize(),
    transformBackdrop: transformBackdrop == null
        ? this.transformBackdrop
        : transformBackdrop(),
    surfaceOpacity:
        surfaceOpacity == null ? this.surfaceOpacity : surfaceOpacity(),
    surfaceBlur: surfaceBlur == null ? this.surfaceBlur : surfaceBlur(),
    barrierColor:
        barrierColor == null ? this.barrierColor : barrierColor(),
    behavior: behavior == null ? this.behavior : behavior(),
  );
}