Folder constructor
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,
});