Could someone show this through an example please?
Simply write two addons:
One that on /minimap show/hide - shows or hides the minimap.
A second one that does the same thing, but can be toggled on/off through ESC -> Interface -> AddOns.
Thank you very much