Group constructor

Group({
  1. String? prefix,
  2. required List<Widget> children,
  3. String? suffix,
  4. String path = 'objd',
  5. int groupMin = 3,
  6. String? filename,
  7. bool generateIDs = true,
})

The group groups actions similar to for but has an option to prefix each action and encapsulate the content in a new file.

If the children length is larger or equal groupMin a new file is created in /objD/(the working directory for objectiveD) and executed.

Group(
	prefix: "execute as @e run "
	children: List<Widget>[
		Command('say 1'),
		Command('say 2'),
		Command('say 3')
	],
	filename: "asgroup",
	groupMin: 2
),

Implementation

Group({
  this.prefix,
  required this.children,
  this.suffix,
  this.path = 'objd',
  this.groupMin = 3,
  this.filename,
  this.generateIDs = true,
});