copyWith method

FloatingParams copyWith({
  1. bool? enablePositionCache,
  2. bool? isSnapToEdge,
  3. bool? isDragEnable,
  4. bool? isShowLog,
  5. double? dragOpacity,
  6. double? marginTop,
  7. double? marginBottom,
  8. double? snapToEdgeSpace,
  9. int? snapToEdgeSpeed,
  10. SnapEdgeType? snapEdgeType,
  11. int? notifyThrottleMs,
})

Implementation

FloatingParams copyWith({
  bool? enablePositionCache,
  bool? isSnapToEdge,
  bool? isDragEnable,
  bool? isShowLog,
  double? dragOpacity,
  double? marginTop,
  double? marginBottom,
  double? snapToEdgeSpace,
  int? snapToEdgeSpeed,
  SnapEdgeType? snapEdgeType,
  int? notifyThrottleMs,
}) {
  return FloatingParams(
    enablePositionCache: enablePositionCache ?? this.enablePositionCache,
    isSnapToEdge: isSnapToEdge ?? this.isSnapToEdge,
    isDragEnable: isDragEnable ?? this.isDragEnable,
    isShowLog: isShowLog ?? this.isShowLog,
    dragOpacity: dragOpacity ?? this.dragOpacity,
    marginTop: marginTop ?? this.marginTop,
    marginBottom: marginBottom ?? this.marginBottom,
    snapToEdgeSpace: snapToEdgeSpace ?? this.snapToEdgeSpace,
    snapToEdgeSpeed: snapToEdgeSpeed ?? this.snapToEdgeSpeed,
    snapEdgeType: snapEdgeType ?? this.snapEdgeType,
    notifyThrottleMs: notifyThrottleMs ?? this.notifyThrottleMs,
  );
}