getMetaDataArrayWhere method

List? getMetaDataArrayWhere(
  1. String key
)

Returns an array of meta data from a WP MetaData key

Returns List

Implementation

List<dynamic>? getMetaDataArrayWhere(String key) {
  MetaData? metaData = this.metaData!.firstWhereOrNull((e) => e.key == key);
  if (metaData == null || metaData.value == null) {
    return null;
  }
  return metaData.value;
}