DefinedElementType class Null safety

An ElementType associated with an Element.

Inheritance
Implementers

Constructors

DefinedElementType(DartType type, Library library, PackageGraph packageGraph, ModelElement _element, ElementType returnedFrom)

Properties

canHaveParameters bool
read-only, inherited
element ModelElement
read-only
hashCode int
The hash code for this object. [...]
read-only, inherited
instantiatedType DartType
Return this type, instantiated to bounds if it isn't already.
read-only, override
isParameterType bool
read-only
isPublic bool
This type is a public type if the underlying, canonical element is public. This avoids discarding the resolved type information as canonicalization would ordinarily do.
read-only, override
isTypedef bool
read-only, override
library Library
final, inherited
linkedName String
read-only, inherited
name String
read-only, override
nameWithGenerics String
Name with generics and nullability indication.
read-only, inherited
nullabilitySuffix String
Return a dartdoc nullability suffix for this type.
read-only, inherited
packageGraph PackageGraph
final, inherited
parameters List<Parameter>
read-only, override
returnedFrom ElementType
final, inherited
returnElement ModelElement
read-only
returnType ElementType
read-only
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
type DartType
read-only, inherited
typeArguments Iterable<ElementType>
read-only

Methods

createLinkedReturnTypeName() String
override
isBoundSupertypeTo(ElementType t) bool
Returns true if at least one supertype (including via mixins and interfaces) is equivalent to or a subtype of this when instantiated to bounds.
override
isSubtypeOf(ElementType t) bool
The instantiated to bounds type of this type is a subtype of t.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() String
Returns a string representation of this object.
inherited

Operators

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