getIndex method

int getIndex({
  1. String route = "default",
})

Implementation

int getIndex({String route = "default"}) {

  if (screenAdIndex.containsKey(route)) {
    log("CommonInterface:[getIndex]->AlreadyHasCount->${screenAdIndex[route]!}");
    return screenAdIndex[route]!;
  }
  screenAdIndex[route] = 0;
  log("CommonInterface:[getIndex]->NoCount");

  return screenAdIndex[route]!;
}