copyWith method

GlassInteractionSettings copyWith({
  1. double? stretch,
  2. double? interactionScale,
  3. double? resistance,
  4. bool? anchorStretch,
  5. 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,
  );
}