copyWith method
GlassInteractionSettings
copyWith({
- double? stretch,
- double? interactionScale,
- double? resistance,
- bool? anchorStretch,
- AnchorStretchSettings? anchorStretchSettings,
Creates a copy with overridden values.
Implementation
GlassInteractionSettings copyWith({
double? stretch,
double? interactionScale,
double? resistance,
bool? anchorStretch,
AnchorStretchSettings? anchorStretchSettings,
}) {
return GlassInteractionSettings(
stretch: stretch ?? this.stretch,
interactionScale: interactionScale ?? this.interactionScale,
resistance: resistance ?? this.resistance,
anchorStretch: anchorStretch ?? this.anchorStretch,
anchorStretchSettings:
anchorStretchSettings ?? this.anchorStretchSettings,
);
}