get static method

AdType get(
  1. int index
)

Implementation

static AdType get(int index) {
  const adTypes = AdType.values;
  if (index >= 0 && index < adTypes.length) {
    return adTypes[index];
  } else {
    return AdType.Banner;
  }
}