Just cast the key and extract its value like following:
final keyValue = (mykey as ValueKey<String>).value;