TransformField
constructor(baseField: MutablePreviewLabField<BaseValue>, transform: (BaseValue) -> TransformedValue, reverse: (TransformedValue) -> BaseValue, label: String = baseField.label, initialValue: TransformedValue = transform(baseField.value), valueCode: (TransformedValue) -> String = { defaultValueCode(label) })
Parameters
baseField
Field that holds the status.
transform
Function to get the converted value.
reverse
Function to return the converted value to its original value.