Debouncing in Flutter

How can debouncing be implemented in Flutter to handle frequent events like search input or button clicks efficiently and avoid unnecessary API calls or function executions?