define method

bool define(
  1. String varName,
  2. dynamic value, {
  3. bool isMutable = false,
  4. bool override = false,
  5. bool throws = true,
  6. String? moduleName,
  7. String? sourceName,
})

Add a declaration to certain namespace.

Implementation

bool define(
  String varName,
  dynamic value, {
  bool isMutable = false,
  bool override = false,
  bool throws = true,
  String? moduleName,
  String? sourceName,
}) =>
    interpreter.define(
      varName,
      value,
      isMutable: isMutable,
      override: override,
      throws: throws,
      moduleName: moduleName,
    );