updateGesture method

InteractionConfig updateGesture(
  1. GestureConfig update(
    1. GestureConfig current
    )
)

Rebuilds InteractionConfig.gesture from its current value.

update receives the current GestureConfig and returns the replacement, so nested configuration is edited without re-stating the enclosing config.

Implementation

InteractionConfig updateGesture(
  GestureConfig Function(GestureConfig current) update,
) => copyWith(gesture: update(gesture));