Triggering afterStateUpdated() with $set()?
Hi, I'm trying to to use the
afterStateUpdated()
method on a TextInput Field, that has been updated/filled by the $set()
method from another field. Updating the value using $set()
does not seem to trigger the afterStateUpdated()
method (unless I'm doing something wrong). Is this not possible? Or how can I achieve this?5 Replies
they say in docs - programaticly setting values wont trigger afterStateUpdated()
Ah it actually does. Thanks, I somehow missed that. Is there any other way to do this apart from using afterStateUpdated()?
Depends on what you need to achieve within afterStateUpdated() method
Set it in the original update field.