of static method
The files a pub get in project may write: pub and flutter,
and the registrants of each platform folder the project has.
In a pub workspace member, pub writes the lock and the package config
in the workspace's root, outside the project: those are not here, and
a rollback brings them back by fetching again (pub get --offline).
Implementation
static List<String> of(JustProject project) => [
...pub,
...flutter,
for (final r in registrants)
if (project.dir(r.substring(0, r.indexOf('/'))).existsSync()) r,
];