GlobalEnvironmentVariableCollection constructor

GlobalEnvironmentVariableCollection({
  1. EnvironmentVariableCollection getScoped(
    1. EnvironmentVariableScope
    )?,
  2. bool? persistent,
  3. dynamic description,
  4. void replace(
    1. String,
    2. String, [
    3. EnvironmentVariableMutatorOptions?
    ])?,
  5. void append(
    1. String,
    2. String, [
    3. EnvironmentVariableMutatorOptions?
    ])?,
  6. void prepend(
    1. String,
    2. String, [
    3. EnvironmentVariableMutatorOptions?
    ])?,
  7. EnvironmentVariableMutator? get(
    1. String
    )?,
  8. void forEach(
    1. dynamic (
      1. String,
      2. EnvironmentVariableMutator,
      3. EnvironmentVariableCollection
      ), [
    2. dynamic
    ])?,
  9. void delete(
    1. String
    )?,
  10. void clear()?,
})

Implementation

factory GlobalEnvironmentVariableCollection({
  _i3.EnvironmentVariableCollection Function(_i3.EnvironmentVariableScope)?
      getScoped,
  _i2.bool? persistent,
  _i2.dynamic description,
  void Function(
    _i2.String,
    _i2.String, [
    _i3.EnvironmentVariableMutatorOptions?,
  ])? replace,
  void Function(
    _i2.String,
    _i2.String, [
    _i3.EnvironmentVariableMutatorOptions?,
  ])? append,
  void Function(
    _i2.String,
    _i2.String, [
    _i3.EnvironmentVariableMutatorOptions?,
  ])? prepend,
  _i3.EnvironmentVariableMutator? Function(_i2.String)? get,
  void Function(
    _i2.dynamic Function(
      _i2.String,
      _i3.EnvironmentVariableMutator,
      _i3.EnvironmentVariableCollection,
    ), [
    _i2.dynamic,
  ])? forEach,
  void Function(_i2.String)? delete,
  void Function()? clear,
}) =>
    GlobalEnvironmentVariableCollection._(
      getScoped: getScoped == null ? null : _i5.allowInterop(getScoped),
      persistent: persistent,
      description: description,
      replace: replace == null ? null : _i5.allowInterop(replace),
      append: append == null ? null : _i5.allowInterop(append),
      prepend: prepend == null ? null : _i5.allowInterop(prepend),
      get: get == null
          ? null
          : _i5.allowInterop((p0) => () => get(p0) ?? _i6.undefined),
      forEach: forEach == null ? null : _i5.allowInterop(forEach),
      delete: delete == null ? null : _i5.allowInterop(delete),
      clear: clear == null ? null : _i5.allowInterop(clear),
    );