addClassDefinition method

void addClassDefinition()

Implementation

void addClassDefinition() {
  if (element is MixinElement) {
    _withMixin();
  } else if (element.unnamedConstructor == null) {
    _withPrivateConstructor();
  } else {
    _withConstructor();
  }
}