clearAttribute method

bool clearAttribute(
  1. String? name
)
inherited

Implementation

bool clearAttribute(String? name) {
  name = _normalizeComponentAttributeName(name);
  if (name == null) return false;

  switch (name) {
    case 'style':
      {
        content!.style.cssText = '';
        return true;
      }
    case 'class':
      {
        content!.classes.clear();
        return true;
      }
    case 'navigate':
      {
        UINavigator.clearNavigateOnClick(content!);
        return true;
      }
    case 'data-source':
      {
        dataSourceCall = null;
        return true;
      }
    default:
      {
        if (_generator != null) {
          _generator.clearAttribute(this, name);
          return true;
        } else {
          return false;
        }
      }
  }
}