Android Studio – Why we have to add get() after a private var in fragment for view binding?
I was following the google codelab. There I came across the following code: class Calculator: Fragment() { private var _binding: FragmentCalculatorBinding? = null private val binding get() = _binding!! } What is the need for the get()? We can do…