Metadata class abstract

The metadata (annotations) associated with an element or fragment.

Constructors

Metadata()

Properties

annotations → List<ElementAnnotation>
The annotations associated with the associated element or fragment.
no setter
hasAlwaysThrows → bool
Whether the receiver has an annotation of the form @alwaysThrows.
no setter
hasAwaitNotRequired → bool
Whether the receiver has an annotation of the form @awaitNotRequired.
no setter
hasDeprecated → bool
Whether the receiver has an annotation of the form @deprecated, @Deprecated('..'), or any other Deprecated constructor.
no setter
hasDoNotStore → bool
Whether the receiver has an annotation of the form @doNotStore.
no setter
hasDoNotSubmit → bool
Whether the receiver has an annotation of the form @doNotSubmit.
no setter
hasExperimental → bool
Whether the receiver has an annotation of the form @experimental.
no setter
hasFactory → bool
Whether the receiver has an annotation of the form @factory.
no setter
hashCode → int
The hash code for this object.
no setterinherited
hasImmutable → bool
Whether the receiver has an annotation of the form @immutable.
no setter
hasInternal → bool
Whether the receiver has an annotation of the form @internal.
no setter
hasIsTest → bool
Whether the receiver has an annotation of the form @isTest.
no setter
hasIsTestGroup → bool
Whether the receiver has an annotation of the form @isTestGroup.
no setter
hasJS → bool
Whether the receiver has an annotation of the form @JS(..).
no setter
hasLiteral → bool
Whether the receiver has an annotation of the form @literal.
no setter
hasMustBeConst → bool
Whether the receiver has an annotation of the form @mustBeConst.
no setter
hasMustBeOverridden → bool
Whether the receiver has an annotation of the form @mustBeOverridden.
no setter
hasMustCallSuper → bool
Whether the receiver has an annotation of the form @mustCallSuper.
no setter
hasNonVirtual → bool
Whether the receiver has an annotation of the form @nonVirtual.
no setter
hasOptionalTypeArgs → bool
Whether the receiver has an annotation of the form @optionalTypeArgs.
no setter
hasOverride → bool
Whether the receiver has an annotation of the form @override.
no setter
hasProtected → bool
Whether the receiver has an annotation of the form @protected.
no setter
hasRedeclare → bool
Whether the receiver has an annotation of the form @redeclare.
no setter
hasReopen → bool
Whether the receiver has an annotation of the form @reopen.
no setter
hasRequired → bool
Whether the receiver has an annotation of the form @required.
no setter
hasSealed → bool
Whether the receiver has an annotation of the form @sealed.
no setter
hasUseResult → bool
Whether the receiver has an annotation of the form @useResult or @UseResult('..').
no setter
hasVisibleForOverriding → bool
Whether the receiver has an annotation of the form @visibleForOverriding.
no setter
hasVisibleForTemplate → bool
Whether the receiver has an annotation of the form @visibleForTemplate.
no setter
hasVisibleForTesting → bool
Whether the receiver has an annotation of the form @visibleForTesting.
no setter
hasVisibleOutsideTemplate → bool
Whether the receiver has an annotation of the form @visibleOutsideTemplate.
no setter
hasWidgetFactory → bool
Whether the receiver has an annotation of the form @widgetFactory.
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

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