VariantType.maybe


Description:

public VariantType.maybe (VariantType element)

Constructs the type corresponding to a ‘maybe’ instance containing type type or `Nothing`.

It is appropriate to call [method@GLib.VariantType.free] on the return value.

Parameters:

element

an element type

Returns:

a new ‘maybe’ type Since 2.24