Project constructor

Project({
  1. required String name,
  2. required Widget generate,
  3. double version = 16,
  4. String target = './',
  5. 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 = 16,
  this.target = './',
  this.description = 'This is a datapack generated with objd by Stevertus',
});