setupHookConfig method

void setupHookConfig({
  1. required Uri packageRoot,
  2. required String packageName,
  3. required OS targetOS,
  4. required List<String> supportedAssetTypes,
  5. required BuildMode? buildMode,
})

Implementation

void setupHookConfig({
  required Uri packageRoot,
  required String packageName,
  required OS targetOS,
  required List<String> supportedAssetTypes,
  required BuildMode? buildMode,
}) {
  json[_packageNameConfigKey] = packageName;
  json[_packageRootConfigKey] = packageRoot.toFilePath();
  json[_targetOSConfigKey] = targetOS.toString();
  json[_supportedAssetTypesKey] = supportedAssetTypes;
  if (buildMode != null) {
    json[_buildModeConfigKey] = buildMode.toString();
  }
}