applyIfNecessary static method

Future applyIfNecessary({
  1. required String root,
  2. required String subPath,
  3. required String prefixNameReplaceFile,
  4. bool isReplaceFiles = true,
  5. bool isNewFiles = true,
  6. 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;
}