Immutability is used for performance reasons . If the widget needs to change, create a new instance set up accordingly. It’s quicker to check if two instances are identical than if their state is the same. This is one of the reasons const is used often.