HTClassDeclaration constructor

HTClassDeclaration({
  1. String? id,
  2. String? classId,
  3. HTDeclarationNamespace? closure,
  4. HTSource? source,
  5. String? documentation,
  6. List<HTGenericTypeParameter> genericTypeParameters = const [],
  7. HTType? superType,
  8. Iterable<HTType> implementsTypes = const [],
  9. Iterable<HTType> withTypes = const [],
  10. bool isExternal = false,
  11. bool isTopLevel = false,
  12. bool isAbstract = false,
  13. bool isEnum = false,
})

Implementation

HTClassDeclaration({
  super.id,
  super.classId,
  super.closure,
  super.source,
  super.documentation,
  this.genericTypeParameters = const [],
  HTType? superType,
  this.implementsTypes = const [],
  this.withTypes = const [],
  super.isExternal = false,
  super.isTopLevel = false,
  this.isAbstract = false,
  this.isEnum = false,
}) : _unresolvedSuperType = superType {
  if (_unresolvedSuperType != null && _unresolvedSuperType!.isResolved) {
    _resolvedSuperType = _unresolvedSuperType;
  }
}