getAllFiles function

Map<String, String> getAllFiles(
  1. Project prj, [
  2. List<String> args = const []
])

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,
  );
}