we will learn how to switch between two icons when you press on the FloatingActionButton., In the onPressed() function of floatingActionButton, we shall write a logic to switch between the Icons.,