getPrizes method

Future<List<PrizeData>> getPrizes(
  1. List<String> ids
)

Implementation

Future<List<PrizeData>> getPrizes(List<String> ids) async {
  List<PrizeData> prizes = [];

  for (int i = 0; i < ids.length; i++) {
    prizes.add(await getPrizeData(ids[i]));
  }
  return prizes;
}