Invocation.setter constructor - Invocation - dart:core library (original) (raw)

description

Invocation.setter(

  1. Symbol memberName,
  2. 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

@pragma("wasm:entry-point")
factory Invocation.setter(Symbol memberName, Object? argument) =
    _Invocation.setter;