shouldRebuildWidget method
Condition on when to rebuild the widget, it exposes the old and the new SnapState of the the state that emits the notification.
Implementation
bool shouldRebuildWidget(
SnapState<dynamic> oldSnap, SnapState<dynamic> currentSnap) {
return true;
}