Answers for "kotlin optional callback"

1

kotlin optional callback

fun method(callback: () -> Unit = {}) {
  // Do stuff...

  callback()
}
Posted by: Guest on September-12-2021

Browse Popular Code Answers by Language