SuperFormalParameterElement class abstract

A super formal parameter defined within a constructor element.

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

Implemented types

Constructors

SuperFormalParameterElement()

Properties

children List<Element>
A list of this element's children. There is no guarantee of the order in which the children will be included.
read-onlyinherited
context → AnalysisContext
Return the analysis context in which this element is defined.
read-onlyinherited
declaration ParameterElement
Return the declaration of this element. If the element is a view on an element, e.g. a method from an interface type, with substituted type parameters, return the corresponding element from the class, without any substitutions. If this element is already a declaration (or a synthetic element, e.g. a synthetic property accessor), return itself.
read-onlyinherited
defaultValueCode String?
Return the Dart code of the default value, or null if no default value.
read-onlyinherited
displayName String
Return the display name of this element, possibly the empty string if this element does not have a name.
read-onlyinherited
documentationComment String?
Return the content of the documentation comment (including delimiters) for this element, or null if this element does not or cannot have documentation.
read-onlyinherited
enclosingElement Element?
Return the element that either physically or logically encloses this element. This will be null if this element is a library because libraries are the top-level elements in the model.
read-onlyinherited
enclosingElement3 Element?
Return the element that either physically or logically encloses this element. This will be null if this element is a library because libraries are the top-level elements in the model.
read-onlyinherited
hasAlwaysThrows bool
Return true if this element has an annotation of the form @alwaysThrows.
read-onlyinherited
hasDefaultValue bool
Return true if this parameter has a default value.
read-onlyinherited
hasDeprecated bool
Return true if this element has an annotation of the form @deprecated or @Deprecated('..').
read-onlyinherited
hasDoNotStore bool
Return true if this element has an annotation of the form @doNotStore.
read-onlyinherited
hasFactory bool
Return true if this element has an annotation of the form @factory.
read-onlyinherited
hashCode int
The hash code for this object.
read-onlyinherited
hasImplicitType bool
Return true if this variable element did not have an explicit type specified for it.
read-onlyinherited
hasInternal bool
Return true if this element has an annotation of the form @internal.
read-onlyinherited
hasIsTest bool
Return true if this element has an annotation of the form @isTest.
read-onlyinherited
hasIsTestGroup bool
Return true if this element has an annotation of the form @isTestGroup.
read-onlyinherited
hasJS bool
Return true if this element has an annotation of the form @JS(..).
read-onlyinherited
hasLiteral bool
Return true if this element has an annotation of the form @literal.
read-onlyinherited
hasMustBeOverridden bool
Return true if this element has an annotation of the form @mustBeOverridden.
read-onlyinherited
hasMustCallSuper bool
Return true if this element has an annotation of the form @mustCallSuper.
read-onlyinherited
hasNonVirtual bool
Return true if this element has an annotation of the form @nonVirtual.
read-onlyinherited
hasOptionalTypeArgs bool
Return true if this element has an annotation of the form @optionalTypeArgs.
read-onlyinherited
hasOverride bool
Return true if this element has an annotation of the form @override.
read-onlyinherited
hasProtected bool
Return true if this element has an annotation of the form @protected.
read-onlyinherited
hasReopen bool
Return true if this element has an annotation of the form @reopen.
read-onlyinherited
hasRequired bool
Return true if this element has an annotation of the form @required.
read-onlyinherited
hasSealed bool
Return true if this element has an annotation of the form @sealed.
read-onlyinherited
hasUseResult bool
Return true if this element has an annotation of the form @useResult or @UseResult('..').
read-onlyinherited
hasVisibleForOverriding bool
Return true if this element has an annotation of the form @visibleForOverriding.
read-onlyinherited
hasVisibleForTemplate bool
Return true if this element has an annotation of the form @visibleForTemplate.
read-onlyinherited
hasVisibleForTesting bool
Return true if this element has an annotation of the form @visibleForTesting.
read-onlyinherited
id int
The unique integer identifier of this element.
read-onlyinherited
isConst bool
Return true if this variable was declared with the 'const' modifier.
read-onlyinherited
isConstantEvaluated bool
Return whether this constant is evaluated.
read-onlyinherited
isCovariant bool
Return true if this parameter is covariant, meaning it is allowed to have a narrower type in an override.
read-onlyinherited
isFinal bool
Return true if this variable was declared with the 'final' modifier. Variables that are declared with the 'const' modifier will return false even though they are implicitly final.
read-onlyinherited
isInitializingFormal bool
Return true if this parameter is an initializing formal parameter.
read-onlyinherited
isLate bool
Return true if this variable uses late evaluation semantics.
read-onlyinherited
isNamed bool
Return true if this parameter is a named parameter. Named parameters that are annotated with the @required annotation are considered optional. Named parameters that are annotated with the required syntax are considered required.
read-onlyinherited
isOptional bool
Return true if this parameter is an optional parameter. Optional parameters can either be positional or named. Named parameters that are annotated with the @required annotation are considered optional. Named parameters that are annotated with the required syntax are considered required.
read-onlyinherited
isOptionalNamed bool
Return true if this parameter is both an optional and named parameter. Named parameters that are annotated with the @required annotation are considered optional. Named parameters that are annotated with the required syntax are considered required.
read-onlyinherited
isOptionalPositional bool
Return true if this parameter is both an optional and positional parameter.
read-onlyinherited
isPositional bool
Return true if this parameter is a positional parameter. Positional parameters can either be required or optional.
read-onlyinherited
isPrivate bool
Return true if this element is private. Private elements are visible only within the library in which they are declared.
read-onlyinherited
isPublic bool
Return true if this element is public. Public elements are visible within any library that imports the library in which they are declared.
read-onlyinherited
isRequired bool
Return true if this parameter is either a required positional parameter, or a named parameter with the required keyword.
read-onlyinherited
isRequiredNamed bool
Return true if this parameter is both a required and named parameter. Named parameters that are annotated with the @required annotation are considered optional. Named parameters that are annotated with the required syntax are considered required.
read-onlyinherited
isRequiredPositional bool
Return true if this parameter is both a required and positional parameter.
read-onlyinherited
isStatic bool
Return true if this element is a static variable, as per section 8 of the Dart Language Specification:
read-onlyinherited
isSuperFormal bool
Return true if this parameter is a super formal parameter.
read-onlyinherited
isSynthetic bool
Return true if this element is synthetic. A synthetic element is an element that is not represented in the source code explicitly, but is implied by the source code, such as the default constructor for a class that does not explicitly define any constructors.
read-onlyinherited
kind ElementKind
Return the kind of element that this is.
read-onlyinherited
library LibraryElement?
Return the library that contains this element. This will be the element itself if it is a library element. This will be null if this element is MultiplyDefinedElement that is not contained in a library.
read-onlyinherited
librarySource → Source?
If this target is associated with a library, return the source of the library's defining compilation unit; otherwise return null.
read-onlyinherited
location ElementLocation?
Return an object representing the location of this element in the element model. The object can be used to locate this element at a later time.
read-onlyinherited
metadata List<ElementAnnotation>
Return a list containing all of the metadata associated with this element. The array will be empty if the element does not have any metadata or if the library containing this element has not yet been resolved.
read-onlyinherited
name String
Return the name of this element, or null if this element does not have a name.
read-onlyinherited
nameLength int
Return the length of the name of this element in the file that contains the declaration of this element, or 0 if this element does not have a name.
read-onlyinherited
nameOffset int
Return the offset of the name of this element in the file that contains the declaration of this element, or -1 if this element is synthetic, does not have a name, or otherwise does not have an offset.
read-onlyinherited
nonSynthetic Element
Return the non-synthetic element that caused this element to be created.
read-onlyinherited
parameterKind → ParameterKind
Return the kind of this parameter.
read-onlyinherited
parameters List<ParameterElement>
Return a list containing all of the parameters defined by this parameter. A parameter will only define other parameters if it is a function typed parameter.
read-onlyinherited
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited
session AnalysisSession?
Return the analysis session in which this element is defined.
read-onlyinherited
sinceSdkVersion Version?
The version where this SDK API was added.
read-onlyinherited
source → Source?
Return the source associated with this target, or null if this target is not associated with a source.
read-onlyinherited
superConstructorParameter ParameterElement?
The associated super-constructor parameter, from the super-constructor that is referenced by the implicit or explicit super-constructor invocation.
read-only
type DartType
Return the declared type of this variable.
read-onlyinherited
typeParameters List<TypeParameterElement>
Return a list containing all of the type parameters defined by this parameter. A parameter will only define other parameters if it is a function typed parameter.
read-onlyinherited

Methods

accept<T>(ElementVisitor<T> visitor) → T?
Use the given visitor to visit this element. Return the value returned by the visitor as a result of visiting this element.
inherited
appendToWithoutDelimiters(StringBuffer buffer, {bool withNullability = false}) → void
Append the type, name and possibly the default value of this parameter to the given buffer.
inherited
computeConstantValue() DartObject?
Return a representation of the value of this variable, forcing the value to be computed if it had not previously been computed, or null if either this variable was not declared with the 'const' modifier or if the value of this variable could not be computed because of errors.
inherited
getDisplayString({required bool withNullability, bool multiline = false}) String
Return the presentation of this element as it should appear when presented to users.
inherited
getExtendedDisplayName(String? shortName) String
Return a display name for the given element that includes the path to the compilation unit in which the type is defined. If shortName is null then displayName will be used as the name of this element. Otherwise the provided name will be used.
inherited
isAccessibleIn(LibraryElement library) bool
Return true if this element, assuming that it is within scope, is accessible to code in the given library. This is defined by the Dart Language Specification in section 6.2:
inherited
isAccessibleIn2(LibraryElement library) bool
Return true if this element, assuming that it is within scope, is accessible to code in the given library. This is defined by the Dart Language Specification in section 6.2:
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
thisOrAncestorMatching<E extends Element>(bool predicate(Element)) → E?
Return either this element or the most immediate ancestor of this element for which the predicate returns true, or null if there is no such element.
inherited
thisOrAncestorOfType<E extends Element>() → E?
Return either this element or the most immediate ancestor of this element that has the given type, or null if there is no such element.
inherited
toString() String
A string representation of this object.
inherited
visitChildren(ElementVisitor visitor) → void
Use 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