getMetaDataFirstWhere method
Returns a single meta data value from a WP MetaData key
Returns dynamic
Implementation
dynamic getMetaDataFirstWhere(String key) {
MetaData? metaData = this.metaData!.firstWhereOrNull((e) => e.key == key);
if (metaData == null ||
metaData.value == null ||
metaData.value!.length < 1) {
return null;
}
return metaData.value!.first;
}