fun TextView.setShadowDetails(shadowColor : Int? = null, shadowDx : Float? = null, shadowDy: Float? = null , shadowRadius : Float? = null){
setShadowLayer(shadowRadius ?: getShadowRadius(),shadowDx ?: getShadowDx(),shadowDy ?: getShadowDy(),shadowColor ?: getShadowColor())
}
Is there a way to get a build error if no parameter is passed to this function? That is, can the minimum number of parameters transferred to this function be set to one? (In some cases I may need to access at least two parameters)
If that's possible, Kotlin is truly a wonderful language!
Tip :
Please only notify me if you have a answer other than function overloading .