validatedByteProperty
fun validatedByteProperty(initialValue: Byte, validation: (ValidatedProperty<Byte>, Byte, Byte) -> Byte): PropertyDelegate<Byte, ByteProperty>
A Kotlin delegate
to create a ValidatedByteProperty. Typical usage :
val fooProperty by validatedByteProperty( initialValue ) { value -> ... }
var foo by fooProperty
Content copied to clipboard