set method

void set(
  1. dynamic key,
  2. dynamic value
)
override

Set property to this JS object.

The key would be a String or int value

The value could be one of int, double, bool, String, Future JsValue or any other type.

Implementation

void set(dynamic key, dynamic value) => _object[key] = jsValue(value, script);