title: Kotlin constructor parameter without getter
body: <p>I have the following code:</p>
  
  <pre><code>class ViewHolder(itemView: View, val ui: ViewUI)
  </code></pre>
  
  <p>I don't want that the field ui have a getter, but kotlin is generating it by default since it is a val defined in the constructor.</p>
  
  <p>In the <a href="https://kotlinlang.org/docs/reference/properties.html" rel="nofollow noreferrer">properties and fields document</a> I found that I can generate a private getter with the following code</p>
  
  <pre><code>var setterVisibility: String = "abc"
      private set
  </code></pre>
  
  <p>But I can't find a way to do this in the constructor definition</p>