Runs action and rebuilds.
action
void applyState(VoidCallback action) { if (mounted) setState(action); }