could we have an interface `ToggleCallback` that is exported from the ToggleLegend class?
also make callback optional and add a `.callback(cb)` method pls