SuperFormalParameterElement2 class abstract

A super formal parameter.

Super formal parameters can only be defined within a constructor element.

Clients may not extend, implement or mix-in this class.

Implemented types

Properties

baseElement FormalParameterElement
The non-Member version of this element.
no setterinherited
children2 List<Element2>
The children of this element.
no setterinherited
defaultValueCode String?
The code of the default value.
no setterinherited
displayName String
The display name of this element, or an empty string if the element does not have a name.
no setterinherited
documentationComment String?
The content of the documentation comment (including delimiters) for this element or fragment.
no setterinherited
enclosingElement2 Element2?
The element that either physically or logically encloses this element.
no setterinherited
firstFragment SuperFormalParameterFragment
The first fragment in the chain of fragments that are merged to make this element.
no setteroverride
formalParameters List<FormalParameterElement>
The formal parameters defined by this formal parameter.
no setterinherited
hasDefaultValue bool
Whether the parameter has a default value.
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
hasImplicitType bool
Whether the variable element did not have an explicit type specified for it.
no setterinherited
id int
The unique integer identifier of this element.
no setterinherited
isConst bool
Whether the variable was declared with the 'const' modifier.
no setterinherited
isCovariant bool
Whether the parameter is covariant, meaning it is allowed to have a narrower type in an override.
no setterinherited
isFinal bool
Whether the variable was declared with the 'final' modifier.
no setterinherited
isInitializingFormal bool
Whether the parameter is an initializing formal parameter.
no setterinherited
isLate bool
Whether the variable uses late evaluation semantics.
no setterinherited
isNamed bool
Whether the parameter is a named parameter.
no setterinherited
isOptional bool
Whether the parameter is an optional parameter.
no setterinherited
isOptionalNamed bool
Whether the parameter is both an optional and named parameter.
no setterinherited
isOptionalPositional bool
Whether the parameter is both an optional and positional parameter.
no setterinherited
isPositional bool
Whether the parameter is a positional parameter.
no setterinherited
isPrivate bool
Whether this element is private.
no setterinherited
isPublic bool
Whether this element is public.
no setterinherited
isRequired bool
Whether the parameter is either a required positional parameter, or a named parameter with the required keyword.
no setterinherited
isRequiredNamed bool
Whether the parameter is both a required and named parameter.
no setterinherited
isRequiredPositional bool
Whether the parameter is both a required and positional parameter.
no setterinherited
isStatic bool
Whether the element is a static variable, as per section 8 of the Dart Language Specification:
no setterinherited
isSuperFormal bool
Whether the parameter is a super formal parameter.
no setterinherited
isSynthetic bool
Whether this element is synthetic.
no setterinherited
kind ElementKind
The kind of this element.
no setterinherited
library2 LibraryElement2?
Library that contains this element.
no setterinherited
location ElementLocation?
The location of this element in the element model.
no setterinherited
lookupName String?
The name to use for lookup in maps.
no setterinherited
metadata2 Metadata
The metadata associated with the element or fragment.
no setterinherited
name3 String?
The name of this element.
no setterinherited
nonSynthetic2 Element2
The non-synthetic element that caused this element to be created.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
session AnalysisSession?
The analysis session in which this element is defined.
no setterinherited
superConstructorParameter2 FormalParameterElement?
The associated super-constructor parameter, from the super-constructor that is referenced by the implicit or explicit super-constructor invocation.
no setter
type DartType
The declared type of this variable.
no setterinherited
typeParameters2 List<TypeParameterElement2>
The type parameters defined by this parameter.
no setterinherited

Methods

accept2<T>(ElementVisitor2<T> visitor) → T?
Uses the given visitor to visit this element.
inherited
appendToWithoutDelimiters2(StringBuffer buffer) → void
Appends the type, name and possibly the default value of this parameter to the given buffer.
inherited
computeConstantValue() DartObject?
Returns a representation of the value of this variable.
inherited
displayString2({bool multiline = false, bool preferTypeAlias = false}) String
The presentation of this element as it should appear when presented to users.
inherited
isAccessibleIn2(LibraryElement2 library) bool
Whether the element, assuming that it is within scope, is accessible to code in the given library.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
thisOrAncestorMatching2(bool predicate(Element2)) Element2?
Returns either this element or the most immediate ancestor of this element for which the predicate returns true.
inherited
thisOrAncestorOfType2<E extends Element2>() → E?
Returns either this element or the most immediate ancestor of this element that has the given type.
inherited
toString() String
A string representation of this object.
inherited
visitChildren2<T>(ElementVisitor2<T> visitor) → void
Uses the given visitor to visit all of the children of this element. There is no guarantee of the order in which the children will be visited.
inherited

Operators

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