expressiveSpringTokenOf function

SpringToken expressiveSpringTokenOf(
  1. ExpressiveMotionScheme scheme,
  2. ExpressiveMotionKey key
)

The generated spring token of key in scheme: Compose's ExpressiveMotionTokens or StandardMotionTokens.

Implementation

SpringToken expressiveSpringTokenOf(
  ExpressiveMotionScheme scheme,
  ExpressiveMotionKey key,
) => switch (scheme) {
  ExpressiveMotionScheme.expressive => ExpressiveMotionTokens.of(key),
  ExpressiveMotionScheme.standard => StandardMotionTokens.of(key),
};