files static method

Future<Map<String, String>> files(
  1. String name, {
  2. Set<Feature> features = const {},
  3. bool full = false,
})

Returns the file map { destinationPath: fileContent } for a project named name.

  • No flags → minimal scaffold (hello controller + bare server).
  • features: {Feature.auth} → minimal + JWT auth wiring.
  • features: {Feature.db} → minimal + database CRUD.
  • features: {Feature.auth, Feature.db, ...} → combination.
  • full: true → full kitchen-sink scaffold (current default behaviour).

Implementation

static Future<Map<String, String>> files(
  String name, {
  Set<Feature> features = const {},
  bool full = false,
}) async {
  return full ? _fullFiles(name) : _partialFiles(name, features);
}