unwrap

inline fun <T> StylePropertyValue.unwrap(): T

Extension function for StylePropertyValue to unwrap StylePropertyValue to given type.

Throws exception if couldn't convert or type doesn't match.


Extension function for StylePropertyValue to unwrap StylePropertyValue to given type.

Throws exception if couldn't convert or type doesn't match.

Parameters

clazz

the class to unwrap to.