Grease a plate with a drop of ghee and set aside. Grate coconut carefully without scraping the brown part of it. This is the first most important point to get white coconut burfi. If you find some small pieces of coconut while you grate, dry grind the coconut gratings to a fine powder. But this step is not necessary if you have fine coconut gratings without any pieces.
Its better to use a non-stick kadai to know the right finishing stage. Aluminium or iron kadai also works great but if you are a beginner, use non-stick kadai. In a wide non-stick kadai, take the grated coconut, sugar, milk and rava (if using). Switch on the flame, keep it medium and mix it.
As you mix, sugar will melt and the mixture becomes watery. Keep the flame completely low and keep mixing the coconut mixture (mixing in low flame is the second important thing to get white burfi). White foamish bubbles will form all over the mixture.
Keep stirring the mixture by staying nearby. Mixture will start to become thick. Bubbles will form in the sides of the pan and mixture will leave the sides of pan.
As soon as the mixture starts to leave the pan, add cardamom powder and mix well for a minute. Mixture will start to form a lump. Lastly add the fried gram dal pieces and give a stir. Remove in the ghee greased plate. No problem if the mixture is slightly wet (the last important point). It will harden in few minutes as it cools down.
Press and level the mixture with back of spatula or butter paper. Then leave it untouched for 2 minutes. Now draw lines using a sharp knife and mark squares or diamond shapes. Let it cool. Remove and enjoy! You can store this burfi in a box and use it for a week. (Initially burfis look half white but it changes to white as time proceeds).