fromOption static method

VcRedistMode fromOption(
  1. dynamic option
)

Parses configuration option to the desired VcRedistMode.

Implementation

static VcRedistMode fromOption(dynamic option) {
  if (option is bool) {
    return option ? bundle : none;
  } else if (option == 'download') {
    return download;
  }
  return none;
}