copyWith method
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,
);
}