GLib.VariantType.prototype.is_maybe

function is_maybe(): Boolean {
    // Gjs wrapper for g_variant_type_is_maybe()
}
  

Determines if the given type is a maybe type. This is true if the type string for type starts with an 'm'.

This function returns true for any indefinite type for which every definite subtype is a maybe type -- %G_VARIANT_TYPE_MAYBE, for example.

Returns

true if type is a maybe type

Since 2.24