getGettableProperties static method

List<String> getGettableProperties(
  1. Invokable obj
)

Implementation

static List<String> getGettableProperties(Invokable obj) {
  try {
    List<String> rtn = obj.getters().keys.toList();
    if (obj is HasController) {
      rtn.addAll((obj as HasController).controller.getBaseGetters().keys);
    }
    return rtn;
  } catch (e) {
    //we ignore this, there is no point at this stage to throw an error
  }
  return [];
}