updateTouch method

InteractionConfig updateTouch(
  1. TouchInteractionConfig update(
    1. TouchInteractionConfig current
    )
)

Rebuilds InteractionConfig.touch from its current value.

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

Implementation

InteractionConfig updateTouch(
  TouchInteractionConfig Function(TouchInteractionConfig current) update,
) => copyWith(touch: update(touch));