getKey method Null safety

String getKey()

Gets the key to locate the state value.

Returns the value key.