generateItems method

List<HistoryListItem> generateItems(
  1. BuildContext buildContext,
  2. List<PracticeSession> sessions,
  3. String header,
  4. String translation,
)

Implementation

List<HistoryListItem> generateItems(BuildContext buildContext,
    List<PracticeSession> sessions, String header, String translation) {
  return List<HistoryListItem>.generate(sessions.length, (int index) {
    return HistoryListItem(
        expandedValue: _practiceSessionListViewWidget(buildContext, sessions),
        headerValue: _headerListTile(header, translation));
  });
}