Spec-Zone.ru › Dart 2

dart:core

Invocation.setter constructor

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;

© 2012 the Dart project authors
Licensed under the BSD 3-Clause "New" or "Revised" License.
https://api.dart.dev/stable/2.19.6/dart-core/Invocation/Invocation.setter.html

Spec-Zone.ru

Настройки Оффлайн Что нового Помощь О нас
Spec-Zone .ru
спецификации, руководства, описания, API