getType abstract method

MetadataType? getType(
  1. String key
)

Determines the type of a metadata value.

If the type of a metadata value associated with a key is not known, this method will enable the type to be queried, in order to know which get method to call. i.e. getDouble(), getInteger() etc.

  • key The name of the key for which to obtain the type.

Returns MetadataType?. An enumeration describing the type of the value associated with the key.

Implementation

MetadataType? getType(String key);