Describe the bug
When overriding addListener and/or removeListener in a custom FlowController, the user can remove the super call, thus resulting in the listener never being called, because the listener doesn't get registered with the internal ValueNotifier.
To Reproduce
Steps to reproduce the behavior:
Create a custom FlowController
Override addListener and/or removeListener
Remove the super call/s
Note that changes to the flow state won't result in listener/s being invoked
Expected behavior
The user should get a warning when removing/omitting super calls with addListener and removeListener.
Describe the bug When overriding
addListener
and/orremoveListener
in a customFlowController
, the user can remove thesuper
call, thus resulting in the listener never being called, because the listener doesn't get registered with the internalValueNotifier
.To Reproduce Steps to reproduce the behavior:
FlowController
addListener
and/orremoveListener
super
call/sExpected behavior The user should get a warning when removing/omitting super calls with
addListener
andremoveListener
.