I'm uncomfortable with this function because it does two different things: it alters the global state of the camera based on captureMode, and it hides or shows the button.

If you take my suggestion above about this.flashState[this.captureMode] then you won't need the _flashType code, and you can give this method a more descriptive name like updateFlashUI().