setup static method

Future<void> setup(
  1. String versionName
)

Triggers finish setup (sdk dependency downloads) for versionName

Implementation

static Future<void> setup(String versionName) async {
  final validVersion = ValidVersion(versionName);
  final cacheVersion = await CacheService.isVersionCached(validVersion);
  if (cacheVersion == null) {
    throw Exception('Cannot setup version that is not in cache');
  }
  await FlutterTools.setupSdk(cacheVersion);
}