getPeopleData static method
Implementation
static List<People> getPeopleData() {
List<People> items = [];
for (int i = 0; i < peopleNames.length; i++) {
People obj = new People();
obj.image = Img.get(peopleImages[i]);
obj.name = peopleNames[i];
obj.email = getEmailFromName(obj.name!);
items.add(obj);
}
items.shuffle();
return items;
}