DeclarationMirror class

reflects attributes declared in a Dart program.

Inheritance
  • Object
  • Mirror
  • DeclarationMirror

Constructors

DeclarationMirror({String name, dynamic type, dynamic annotations, bool isFinal: false, bool isRequired: false, bool isNamed: false })
const

Properties

isFinal → bool
Determines if the attribute is final
final
isNamed → bool
Determines if the attribute is named
final
isRequired → bool
Determines if the attribute is required
final
type → dynamic
Returns the type of the attribute, for example: [...]
final
annotations → List<Annotation>
annotations of the element
final, inherited
hashCode → int
The hash code for this object.
read-only, inherited
name → String
final, inherited
runtimeType → Type
A representation of the runtime type of the object.
read-only, inherited

Methods

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

Operators

operator ==(dynamic other) → bool
The equality operator.
inherited