ElementType class

Base class representing a type in Dartdoc. It wraps a DartType, and may link to a ModelElement.

Inheritance
Implementers

Constructors

ElementType(DartType _type, Library library, PackageGraph packageGraph, ElementType returnedFrom)
ElementType.from(DartType f, Library library, PackageGraph packageGraph, [ElementType returnedFrom])
factory

Properties

canHaveParameters bool
read-only
hashCode int
The hash code for this object. [...]
read-only, inherited
instantiatedType DartType
read-only
isPublic bool
read-only, inherited
isTypedef bool
read-only
library Library
final
linkedName String
read-only
name String
read-only
nameWithGenerics String
Name with generics and nullability indication.
read-only
nullabilitySuffix String
Return a dartdoc nullability suffix for this type.
read-only
packageGraph PackageGraph
final
parameters List<Parameter>
read-only
returnedFrom ElementType
final
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
type DartType
read-only

Methods

createLinkedReturnTypeName() String
isBoundSupertypeTo(ElementType t) bool
isSubtypeOf(ElementType t) bool
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() String
Returns a string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator. [...]
inherited