expressiveIsSpatialKey function

bool expressiveIsSpatialKey(
  1. ExpressiveMotionKey key
)

Whether key is a spatial spring (it moves, resizes or reshapes) rather than an effects spring (opacity, colour): Compose's *Spatial versus *Effects members of MotionSchemeKeyTokens.

Implementation

bool expressiveIsSpatialKey(ExpressiveMotionKey key) => switch (key) {
  ExpressiveMotionKey.fastSpatial ||
  ExpressiveMotionKey.defaultSpatial ||
  ExpressiveMotionKey.slowSpatial => true,
  ExpressiveMotionKey.fastEffects ||
  ExpressiveMotionKey.defaultEffects ||
  ExpressiveMotionKey.slowEffects => false,
};