defineProperty method

bool defineProperty(
  1. Object target,
  2. Object propertyKey,
  3. Object attributes
)

Adds a property to an object, or modifies attributes of an existing property.

Implementation

_i2.bool defineProperty(
  _i2.Object target,
  _i2.Object propertyKey,
  _i2.Object attributes,
) =>
    _i3.callMethod(
      this,
      'defineProperty',
      [
        target,
        propertyKey,
        attributes,
      ],
    );