You are building an application in Flutter. In which of the given situations, are you likely to call a removeListener manually while doing so?
1. When you’re listening to an Action widget in a widget hierarchy
2. When you’re using an Action outside of a widget context
Options
- Only 1
- Only 2
- Both 1,2
- None of these