Could someone please help with how to correctly write the code for this? When I try using the 'get checked' or 'set checked' command I see an error " 'get'/'set' is undefined. If I put $w in front I get an 'unexpected token' error. Also, what are the default values for a switch and why does the settings panel for a switch only have one value in it rather than one for on, one for off? I've read the code API but am unsure how to use this in an actual code line:
get checked(): boolean
set checked(value: boolean): void
Does anyone have any code examples for this element?