So LEDs are sort of on/off, in actuality they are either conducting or not, they are diodes, one way "valves".
You CAN vary the brightness a bit, but it a very narrow range of CURRENT that can produce the results, unlike incandescent lights which are VERY sensitive to variations in voltage (we have all seen house lights dim when a high current appliance starts)
This is why PWM (Pulse Width Modulation) works so well on LED dimming, you turn it on and off rapidly, so the AVERAGE intensity you see varies. Your eye is not "fast" and can only see "flickering" on/off at 60 Hz or less (that is why the US and many countries use 60 cycle per second AC, and why TVs in the UK seem to flicker for us US people (because you use 50 Hz)
Just some extra information on understanding LEDs vs incandescent bulbs.
Greg