asReadOnly
Returns a read-only view of this mutable OptionalVAlignmentProperty. Typical usage :
private val mutableFooProperty by optionalVAlignmentProperty( initialValue )
val fooProperty = mutableFooProperty.asReadOnly()
val foo by mutableFooProperty
private set
Content copied to clipboard
This give private
access to the mutable property, and the mutable var
, but the public only has read-only access.