EnvironmentVariableCollection constructor

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

Implementation

factory EnvironmentVariableCollection({
  _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,
}) =>
    EnvironmentVariableCollection._(
      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),
    );