updateKeyboard method

InteractionConfig updateKeyboard(
  1. KeyboardConfig update(
    1. KeyboardConfig current
    )
)

Rebuilds InteractionConfig.keyboard from its current value.

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

Implementation

InteractionConfig updateKeyboard(
  KeyboardConfig Function(KeyboardConfig current) update,
) => copyWith(keyboard: update(keyboard));