asReadOnly
Returns a read-only view of this mutable OptionalScriptsCanOverrideSlicerSettingsProperty. Typical usage :
private val _fooProperty by optionalScriptsCanOverrideSlicerSettingsProperty( initialValue )
val fooProperty = _fooProperty.asReadOnly()
val foo by _fooProperty
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.