GetterFragment class abstract

The portion of a GetterElement contributed by a single declaration.

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

Implemented types

Constructors

GetterFragment()

Properties

children3 List<Fragment>
The children of this fragment.
no setterinherited
correspondingSetter2 SetterFragment?
The setter that corresponds to (has the same name as) this getter, or null if there is no corresponding setter.
no setter
documentationComment String?
The content of the documentation comment (including delimiters) for this element or fragment.
no setterinherited
element ExecutableElement2
The element composed from this fragment and possibly other fragments.
no setterinherited
enclosingFragment Fragment?
The fragment that either physically or logically encloses this fragment.
no setterinherited
formalParameters List<FormalParameterFragment>
The formal parameters defined by this fragment.
no setterinherited
hasAlwaysThrows bool
Whether the receiver has an annotation of the form @alwaysThrows.
no setterinherited
hasDeprecated bool
Whether the receiver has an annotation of the form @deprecated or @Deprecated('..').
no setterinherited
hasDoNotStore bool
Whether the receiver has an annotation of the form @doNotStore.
no setterinherited
hasDoNotSubmit bool
Whether the receiver has an annotation of the form @doNotSubmit.
no setterinherited
hasFactory bool
Whether the receiver has an annotation of the form @factory.
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
hasImmutable bool
Whether the receiver has an annotation of the form @immutable.
no setterinherited
hasInternal bool
Whether the receiver has an annotation of the form @internal.
no setterinherited
hasIsTest bool
Whether the receiver has an annotation of the form @isTest.
no setterinherited
hasIsTestGroup bool
Whether the receiver has an annotation of the form @isTestGroup.
no setterinherited
hasJS bool
Whether the receiver has an annotation of the form @JS(..).
no setterinherited
hasLiteral bool
Whether the receiver has an annotation of the form @literal.
no setterinherited
hasMustBeConst bool
Whether the receiver has an annotation of the form @mustBeConst.
no setterinherited
hasMustBeOverridden bool
Whether the receiver has an annotation of the form @mustBeOverridden.
no setterinherited
hasMustCallSuper bool
Whether the receiver has an annotation of the form @mustCallSuper.
no setterinherited
hasNonVirtual bool
Whether the receiver has an annotation of the form @nonVirtual.
no setterinherited
hasOptionalTypeArgs bool
Whether the receiver has an annotation of the form @optionalTypeArgs.
no setterinherited
hasOverride bool
Whether the receiver has an annotation of the form @override.
no setterinherited
hasProtected bool
Whether the receiver has an annotation of the form @protected.
no setterinherited
hasRedeclare bool
Whether the receiver has an annotation of the form @redeclare.
no setterinherited
hasReopen bool
Whether the receiver has an annotation of the form @reopen.
no setterinherited
hasRequired bool
Whether the receiver has an annotation of the form @required.
no setterinherited
hasSealed bool
Whether the receiver has an annotation of the form @sealed.
no setterinherited
hasUseResult bool
Whether the receiver has an annotation of the form @useResult or @UseResult('..').
no setterinherited
hasVisibleForOverriding bool
Whether the receiver has an annotation of the form @visibleForOverriding.
no setterinherited
hasVisibleForTemplate bool
Whether the receiver has an annotation of the form @visibleForTemplate.
no setterinherited
hasVisibleForTesting bool
Whether the receiver has an annotation of the form @visibleForTesting.
no setterinherited
hasVisibleOutsideTemplate bool
Whether the receiver has an annotation of the form @visibleOutsideTemplate.
no setterinherited
isAsynchronous bool
Whether the body is marked as being asynchronous.
no setterinherited
isAugmentation bool
Whether the element is an augmentation.
no setterinherited
isGenerator bool
Whether the body is marked as being a generator.
no setterinherited
isSynchronous bool
Whether the body is marked as being synchronous.
no setterinherited
libraryFragment LibraryFragment
The library fragment that contains this fragment.
no setterinherited
metadata List<ElementAnnotation>
The metadata associated with the element or fragment.
no setterinherited
name String
The name of this fragment.
no setteroverride
nameOffset int?
The offset of the name in this fragment.
no setterinherited
nextFragment Fragment?
The next fragment in the augmentation chain.
no setterinherited
previousFragment Fragment?
The previous fragment in the augmentation chain.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sinceSdkVersion → Version?
The version where this SDK API was added.
no setterinherited
typeParameters2 List<TypeParameterFragment>
The type parameters declared by this fragment directly.
no setterinherited
variable3 PropertyInducingFragment?
The field or top-level variable associated with this getter.
no setter

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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