Folder constructor

Folder(
  1. String path, {
  2. required Widget child,
})

The Folder Widget gives you a way to place all following files inside a specific folder path.

constructor
String the folder path
child another Widget that inherits the given path

Example:

Folder(
	'custom',
	child: For.of([
		File('main')
		File('subfolder/test')
	]),
)

Would create 2 functions: functions/custom/main.mcfunction and functions/custom/subfolder/test.mcfunction

Implementation

Folder(
  this.path, {
  required this.child,
});