Callback to determine whether this StateBuilder will rebuild or not.
final bool Function(SnapState<T>? model)? shouldRebuild;