Modifier.animateScaleClickable( enabled: Boolean, hapticEnabled: Boolean = true, ): Modifier = this.then( AnimateScaleClickableElement(enabled, hapticEnabled) ) // Element:Modifierの変更判定をおこなう private data class AnimateScaleClickableElement( val enabled: Boolean, val hapticEnabled: Boolean = true, ) : ModifierNodeElement<AnimateScaleClickableNode>() // Node:UI装飾や動作を設定する private class AnimateScaleClickableNode( var enabled: Boolean, var hapticEnabled: Boolean = true, ) : Modifier.Node()