setSdkVersions function

String setSdkVersions(
  1. Context context,
  2. String manifestFileData,
  3. Map sdkVersionsMap
)

Implementation

String setSdkVersions(Context context, String manifestFileData, Map sdkVersionsMap) {
  sdkVersionsMap.forEach((k,v) =>
      manifestFileData = manifestFileData.replaceAll("flutter.${k}", "${v}")
  );
  return manifestFileData;
}