getPropertyNameWithIndex static method

String getPropertyNameWithIndex(
  1. Property prop
)

Implementation

static String getPropertyNameWithIndex(Property prop) {
  if (prop.parentId.contains("_")) {
    List<String> splitParentId = prop.parentId.split("_");
    return "${prop.name} (${splitParentId[1]})";
  }

  return prop.name;
}