BrickImpl constructor
BrickImpl(
- BrickConfig config, {
- required String name,
- required String? outputDir,
- required bool watch,
- required bool shouldSync,
A brick is a collection of files that can be copied, altered, and/or generated into a new project.
Implementation
BrickImpl(
super.config, {
required this.name,
required String? outputDir,
required this.watch,
required this.shouldSync,
}) : outputDir = join(outputDir ?? 'bricks', name, '__brick__'),
masonBrick = config.masonBrickConfig == null
? null
: config.masonBrickConfig!.isString
? MasonBrickImpl(
MasonBrickConfig(
path: config.masonBrickConfig!.string!,
),
shouldSync: shouldSync,
)
: MasonBrickImpl(
config.masonBrickConfig!.object!,
shouldSync: shouldSync,
);