Property class

A property object.

Inheritance
Mixed in types

Constructors

Property(Scope scope, int token, int _parentToken, String name, int _attributes, Uint8List signatureBlob, TypeIdentifier typeIdentifier, BaseType baseType, Uint8List defaultValue, int _setterToken, int _getterToken, Uint32List otherMethodTokens)
Property.fromToken(Scope scope, int token)
Creates a property object from a provided token.
factory

Properties

baseType BaseType
final
customAttributes List<CustomAttribute>
Enumerate all attributes that this object has.
no setterinherited
defaultValue Uint8List
final
getterMethod Method?
Returns the get accessor method for the property.
no setter
hasDefault bool
Returns true if the property has a default value.
no setter
hasGetter bool
Returns true if the property has a getter. If false, the property is write-only.
no setter
hashCode int
The hash code for this object.
no setterinherited
hasSetter bool
Returns true if the property has a setter. If false, the property is read-only.
no setter
isGlobal bool
Returns true if the token is marked as global.
no setterinherited
isResolvedToken bool
Returns true if the token maps to an entry in the WinMD database.
no setterinherited
isRTSpecialName bool
Returns true if the common language runtime metadata internal APIs should check the encoding of the property name.
no setter
isSpecialName bool
Returns true if the property is special; the name describes how.
no setter
name String
final
otherMethodTokens Uint32List
final
parent TypeDef
Returns the TypeDef representing the type that implements the property.
no setter
reader → IMetaDataImport2
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
scope Scope
The Scope that contains this token.
finalinherited
setterMethod Method?
Returns the set accessor method for the property.
no setter
signatureBlob Uint8List
final
token int
A unique identifier for this token in the metadata file.
finalinherited
tokenType TokenType
no setterinherited
typeIdentifier TypeIdentifier
final

Methods

attributeAsString(String attrName) String
Retrieve the string associated with a specific attribute name.
inherited
existsAttribute(String attrName) bool
Tests whether this object has an attribute matching the given name.
inherited
findAttribute(String attrName) CustomAttribute?
Returns the first attribute matching the given attribute name.
inherited
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