This could be re-written as:

    return entries.map((entry) => entry.name).toList();