'what we can dispose in flutter? is only controller or else?

what we can more do to avoid memory leak exception

  @override
      void dispose() {
        customerNameController.dispose();
        timer.cancel();
            
        super.dispose();
      }


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source