open class _LinearLayout(ctx: Context): android.widget.LinearLayout(ctx) {
fun <T: View> T.lparams(
c: android.content.Context?,
attrs: android.util.AttributeSet?,
init: android.widget.LinearLayout.LayoutParams.() -> Unit = defaultInit
😞 T {
val layoutParams = android.widget.LinearLayout.LayoutParams(c!!, attrs!!)
layoutParams.init()
this@lparams.layoutParams = layoutParams //what is this@lparams for?
return this
}
Please explain how referencing layoutParams in this@lparams is possible, as I do not know what sort of notation "this@" is.