copyWith method

ObjectLayoutAssistSettings copyWith({
  1. bool? enabled,
  2. HapticFeedbackSettings? hapticFeedback,
  3. double? positionalEnterDistance,
  4. double? positionalExitDistance,
  5. double? rotationalEnterAngle,
  6. double? rotationalExitAngle,
})

Creates a copy of this but with the given fields replaced with the new values.

Implementation

ObjectLayoutAssistSettings copyWith({
  bool? enabled,
  HapticFeedbackSettings? hapticFeedback,
  double? positionalEnterDistance,
  double? positionalExitDistance,
  double? rotationalEnterAngle,
  double? rotationalExitAngle,
}) {
  return ObjectLayoutAssistSettings(
    enabled: enabled ?? this.enabled,
    hapticFeedback: hapticFeedback ?? this.hapticFeedback,
    positionalEnterDistance:
        positionalEnterDistance ?? this.positionalEnterDistance,
    positionalExitDistance:
        positionalExitDistance ?? this.positionalExitDistance,
    rotationalEnterAngle: rotationalEnterAngle ?? this.rotationalEnterAngle,
    rotationalExitAngle: rotationalExitAngle ?? this.rotationalExitAngle,
  );
}