cover property

Item? get cover

Implementation

Item? get cover {
  Item? result;
  try {
    result = items.firstWhere(
      (element) => element.properties.contains(ItemProperty.coverImage),
    );
  } on StateError {
    result = null;
  }
  return result;
}