Clearing the State

If the instance of the form is closed or refreshed, the system automatically clears the state. To manually clear the state in your application, you can use the clear function.