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
You can create a static method with using Companion object like:
class Foo { // ... companion object { public fun bar() { // do anything } } }
and then you can call it like:
class Baz { // ... private fun callBar() { Foo.bar() } }