Documentation / dataflow-async / com.femastudios.dataflow.async.util / attributeWrapperOf
Go to reference

attributeWrapperOf

fun <T> attributeWrapperOf(): AttributeWrapper<T>

Returns an AttributeWrapper initially containing the Loading state


fun <T> attributeWrapperOf(loadedValue: T): AttributeWrapper<T>

Returns an AttributeWrapper initially containing the Loaded state with value loadedValue


fun <T> attributeWrapperOf(value: AttributeData<T>): AttributeWrapper<T>

Returns an AttributeWrapper initially containing the given value state


fun <T> attributeWrapperOf(loadedValue: Field<T>): AttributeWrapper<T>

Returns an AttributeWrapper initially containing the Loaded state with value mirroring the given loadedValue field


fun <T> attributeWrapperOf(value: Attribute<T>): AttributeWrapper<T>

Returns an AttributeWrapper initially mirroring the state of the given value attribute