void setDirection(UDocDirection direction) => updateSettings(settings.copyWith(direction: direction));