Project constructor

Project({
  1. required String name,
  2. required Widget generate,
  3. double version = 20.4,
  4. String target = './',
  5. int? packFormat,
  6. List<int>? supportedFormats,
  7. String description = 'This is a datapack generated with objd by Stevertus',
})

The project is a special Widget which is just defined once.

It contains some built options, like description or name, but also the entire underlying tree of packs, files and actions.

main() {
// create Project takes in one project and compiles it
createProject(
	Project(
	name:  'tested',
	generate:  mainWidget(),
	));
}

Implementation

Project({
  required this.name,
  required this.generate,
  this.version = 20.4,
  this.target = './',
  this.packFormat,
  this.supportedFormats,
  this.description = 'This is a datapack generated with objd by Stevertus',
});