function clear(): void {
    // Gjs wrapper for g_variant_dict_clear()

Releases all memory associated with a GLib.VariantDict without freeing the GLib.VariantDict structure itself.

It typically only makes sense to do this on a stack-allocated GLib.VariantDict if you want to abort building the value part-way through. This function need not be called if you call GLib.VariantDict.prototype.end and it also doesn't need to be called on dicts allocated with g_variant_dict_new (see GLib.VariantDict.prototype.unref for that).

It is valid to call this function on either an initialised GLib.VariantDict or one that was previously cleared by an earlier call to GLib.VariantDict.prototype.clear but it is not valid to call this function on uninitialised memory.

Since 2.40