Skip to content

Instantly share code, notes, and snippets.

@dilrajsingh1997
Created May 31, 2022 11:54
Show Gist options
  • Save dilrajsingh1997/e30bcd2e240d7ce7f1cde9c49640658f to your computer and use it in GitHub Desktop.
Save dilrajsingh1997/e30bcd2e240d7ce7f1cde9c49640658f to your computer and use it in GitHub Desktop.
fun ItemStateBuilder.build(): ItemState
fun ItemStateBuilder.animateY(
to: ItemStateBuilder.() -> Float,
animationSpec: ItemStateBuilder.() -> AnimationSpec<Float>,
): ItemStateBuilder
fun ItemStateBuilder.animateY(
to: ItemStateBuilder.() -> Float,
animationSpec: ItemStateBuilder.() -> AnimationSpec<Float>,
): ItemStateBuilder
fun ItemStateBuilder.animateX(
to: ItemStateBuilder.() -> Float,
animationSpec: ItemStateBuilder.() -> AnimationSpec<Float>,
): ItemStateBuilder
fun ItemStateBuilder.animateSize(
to: ItemStateBuilder.() -> Float,
animationSpec: ItemStateBuilder.() -> AnimationSpec<Float>,
): ItemStateBuilder
fun ItemStateBuilder.animateAngle(
to: ItemStateBuilder.() -> Float,
animationSpec: ItemStateBuilder.() -> AnimationSpec<Float>,
): ItemStateBuilder
fun ItemStateBuilder.animateColor(
to: ItemStateBuilder.() -> Color,
animationSpec: ItemStateBuilder.() -> AnimationSpec<Color>,
): ItemStateBuilder
fun ItemStateBuilder.animateAlpha(
to: ItemStateBuilder.() -> Float,
animationSpec: ItemStateBuilder.() -> AnimationSpec<Float>,
): ItemStateBuilder
fun ItemStateBuilder.terminalCondition(
terminalCondition: (
interpolatedX: Float,
interpolatedY: Float,
interpolatedAlpha: Float,
interpolatedAngle: Float,
interpolatedColor: Color,
interpolatedScale: Float,
elapsedTimeMillis: Float
) -> Boolean
): ItemStateBuilder
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment