formatEntity property
Map<dynamic, FavoritesEntity>
formatEntity
Used to format a list of FavoritesEntity
into a map.
Implementation
Map<dynamic, FavoritesEntity> get formatEntity {
Map<dynamic, FavoritesEntity> tempMap = {};
//
for (var entity in this) {
tempMap[entity.key] = entity;
}
return tempMap;
}