Function

TwoWayConverter

Factory method to create a TwoWayConverter that converts a type T from and to an AnimationVector type.

TwoWayConverter

Source set: Common
public fun <T, V : AnimationVector> TwoWayConverter(
    convertToVector: (T) -> V,
    convertFromVector: (V) -> T,
): TwoWayConverter<T, V>

Factory method to create a TwoWayConverter that converts a type T from and to an AnimationVector type.

Parameters

convertToVector converts from type T to AnimationVector
convertFromVector converts from AnimationVector to type T
Jetpack Compose beyond MaterialFree components, screens and templates for apps that don’t look like Google’s. Copy them into your app, or let your coding agent add them.Browse for free

Content updated: