How do you define a static extension method in Kotlin? Is this even possible? I currently have an extension method as shown below.
public fun Uber.doMagic(co
To create an extension method in kotlin you have to create a kotlin file(not a class) then declare your method in the file Eg:
public fun String.toLowercase(){ // **this** is the string object }
Import the function in the class or file you are working on and use it.