SetterMetadata class

Represents metadata about a setter.

Inheritance

Constructors

SetterMetadata({required TypeMetadata valueType, required String name, required void setter(dynamic instance, dynamic value), List annotations = const []})

Properties

annotations List
List of annotations applied to this element.
finalinherited
classMetadata ClassMetadata
Back-reference to the class that contains this setter.
latefinal
hashCode int
The hash code for this object.
no setterinherited
name String
The name of this setter.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
setter → void Function(dynamic instance, dynamic value)
Function that invokes the setter on an instance.
final
typeMetadata TypeMetadata
Type information for this element.
finalinherited

Methods

allAnnotationsOf<A>() List<A>
Returns all annotations of type A.
inherited
firstAnnotationOf<A>() → A?
Returns the first annotation of type A, if it exists.
inherited
hasAnnotation<A>() bool
Checks if this element has an annotation of type A.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
setValue(dynamic instance, dynamic value) → void
Sets the value on the given instance.
toString() String
A string representation of this object.
inherited

Operators

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