fun Context.showToast(@StringRes messageResId: Int, duration: Int = TOAST_DEFAULT_DURATION): Unit
Creates and displays a new Toast with specified message.
Example:
showToast(R.string.update_complete)
fun Context.showToast(message: String?, duration: Int = TOAST_DEFAULT_DURATION): Unit
Creates and displays a new Toast with specified message.
Example:
showToast("Update complete")