TargetKind class
An enumeration of the kinds of targets to which an annotation can be applied.
Properties
- displayString → String
-
A user visible string used to describe this target kind.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- index → int
-
A numeric identifier for the enumerated value.
no setter
- name → String
-
The name of the TargetKind value.
final
- 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.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
- classType → const TargetKind
- Indicates that an annotation is valid on any class declaration.
- enumType → const TargetKind
- Indicates that an annotation is valid on any enum declaration.
- extension → const TargetKind
- Indicates that an annotation is valid on any extension declaration.
- extensionType → const TargetKind
- Indicates that an annotation is valid on any extension type declaration.
- field → const TargetKind
- Indicates that an annotation is valid on any field declaration, both instance and static fields, whether it's in a class, mixin or extension.
- function → const TargetKind
- Indicates that an annotation is valid on any top-level function declaration.
- getter → const TargetKind
- Indicates that an annotation is valid on any getter declaration, both instance or static getters, whether it's in a class, mixin, extension, or at the top-level of a library.
- library → const TargetKind
-
Indicates that an annotation is valid on the first directive in a library,
whether that's a
library
,import
,export
orpart
directive. This doesn't include thepart of
directive in a part file. - method → const TargetKind
- Indicates that an annotation is valid on any method declaration, both instance and static methods, whether it's in a class, mixin or extension.
- mixinType → const TargetKind
- Indicates that an annotation is valid on any mixin declaration.
- parameter → const TargetKind
- Indicates that an annotation is valid on any formal parameter declaration, whether it's in a function, method, constructor, or closure.
- setter → const TargetKind
- Indicates that an annotation is valid on any setter declaration, both instance or static setters, whether it's in a class, mixin, extension, or at the top-level of a library.
- topLevelVariable → const TargetKind
- Indicates that an annotation is valid on any top-level variable declaration.
- type → const TargetKind
- Indicates that an annotation is valid on any declaration that introduces a type. This includes classes, enums, mixins and typedefs, but does not include extensions because extensions don't introduce a type.
- typedefType → const TargetKind
- Indicates that an annotation is valid on any typedef declaration.`
-
values
→ const List<
TargetKind>