Retrieves the metadata value for key.
If expected_type is non-null, any non-null value
returned from this function will match expected_type.
| this | |
| key |
the metadata key |
| expected_type |
a VariantType or null |
|
a non-floating Variant which should be released with |