define method

dynamic define(
  1. Name key,
  2. dynamic value
)

Defines a new binding from key to value.

Implementation

dynamic define(Name key, dynamic value) => _bindings[key] = value;