Env constructor

Env({
  1. String? get(
    1. String
    )?,
  2. void set(
    1. String,
    2. String
    )?,
  3. void delete(
    1. String
    )?,
  4. bool has(
    1. String
    )?,
  5. Object toObject()?,
})

Implementation

factory Env({
  _i2.String? Function(_i2.String)? get,
  void Function(
    _i2.String,
    _i2.String,
  )? set,
  void Function(_i2.String)? delete,
  _i2.bool Function(_i2.String)? has,
  _i2.Object Function()? toObject,
}) =>
    Env._(
      get: get == null
          ? null
          : _i3.allowInterop((p0) => () => get(p0) ?? _i6.undefined),
      set: set == null ? null : _i3.allowInterop(set),
      delete: delete == null ? null : _i3.allowInterop(delete),
      has: has == null ? null : _i3.allowInterop(has),
      toObject: toObject == null ? null : _i3.allowInterop(toObject),
    );