W3cubDocs

/Dart 2

Invocation.setter constructor

Invocation.setter(Symbol memberName, Object argument)

Creates an invocation corresponding to a setter invocation.

This constructor accepts any Symbol as memberName, but remember that actual setter names end in =, so the invocation corresponding to object.member = value is

Invocation.setter(const Symbol("member="), value)

Implementation

factory Invocation.setter(Symbol memberName, Object argument) =
    _Invocation.setter;

© 2012 the Dart project authors
Licensed under the Creative Commons Attribution-ShareAlike License v4.0.
https://api.dart.dev/stable/2.5.0/dart-core/Invocation/Invocation.setter.html