if you want to get notified when the widget house alterations, override the didUpdateWidget() perform, which happens to be passed an oldWidget to let you compare the aged widget with The existing widget.
What follows https://joanqanv406189.timeblog.net/65196213/not-known-factual-statements-about-fcm-flutter