getaditionPathItemCount method

int getaditionPathItemCount(
  1. String pathId
)

Implementation

int getaditionPathItemCount(String pathId) {
  if (dataStore.totalEntitiesCount[pathId]! % 4 == 0) {
    return 2;
  } else {
    return 4 - (dataStore.totalEntitiesCount[pathId]! % 4) + 1;
  }
}