getWidgetName method

String getWidgetName()

Implementation

String getWidgetName() {
  if (_contextBaseFunction == null) {
    return "";
  }
  String className = _contextBaseFunction.toString();
  if (className == null) {
    return "";
  }

  if (!FimConstant.inProduction) {
    try {
      className = className.substring(0, className.indexOf("("));
    } catch (err) {
      className = "";
    }
    return className;
  }

  return className;
}