applyIfNecessary static method
Future
applyIfNecessary(
{ - required String root,
- required String subPath,
- required String prefixNameReplaceFile,
- bool isReplaceFiles = true,
- bool isNewFiles = true,
- bool isScripts = false,
})
Implementation
static Future applyIfNecessary({
required String root,
required String subPath,
required String prefixNameReplaceFile,
bool isReplaceFiles = true,
bool isNewFiles = true,
bool isScripts = false,
}) async {
if (isScripts) {
_initTriggerScripts(root, subPath, prefixNameReplaceFile);
}
if (isNewFiles) {
_initTriggerNewFile(root, subPath, prefixNameReplaceFile);
}
if (isReplaceFiles) {
_initTriggerReplace(root, subPath, prefixNameReplaceFile);
}
return;
}