getAllFiles function
getAllFiles
accepts, just like createProject, your Project and optionally arguments. It then generates the widget tree and builds the files, but instead of saving them to your machine, returns them as a Dart Map(filename-content).
Implementation
Map<String, String> getAllFiles(Project prj, [List<String> args = const []]) {
var opt = GenOptions(args);
return _getFiles(
BuildProject(
prj,
prod: opt.prod,
logging: false,
),
opt,
);
}