setObjectType static method

String setObjectType(
  1. String item
)

attempts to retrieve the object type from the dictionary.Returns the input if no entry was found. ie: 'word' produces CMDString.SELECT_WORD

Implementation

static String setObjectType(String item) {
  return _itemDictionary[item] ?? item;
}