ProxyHandler<T extends Object> constructor

ProxyHandler<T extends Object>({
  1. dynamic apply(
    1. dynamic,
    2. List, [
    3. dynamic
    ])?,
  2. Object construct(
    1. dynamic,
    2. List,
    3. Function
    )?,
  3. bool defineProperty(
    1. dynamic,
    2. Object,
    3. PropertyDescriptor
    )?,
  4. bool deleteProperty(
    1. dynamic,
    2. Object
    )?,
  5. dynamic get(
    1. dynamic,
    2. Object, [
    3. dynamic
    ])?,
  6. PropertyDescriptor? getOwnPropertyDescriptor(
    1. dynamic,
    2. Object
    )?,
  7. Object? getPrototypeOf(
    1. dynamic
    )?,
  8. bool has(
    1. dynamic,
    2. Object
    )?,
  9. bool isExtensible(
    1. dynamic
    )?,
  10. List<Object> ownKeys(
    1. dynamic
    )?,
  11. bool preventExtensions(
    1. dynamic
    )?,
  12. bool set(
    1. dynamic,
    2. Object, [
    3. dynamic,
    4. dynamic,
    ])?,
  13. bool setPrototypeOf(
    1. dynamic, [
    2. Object?
    ])?,
})

Implementation

factory ProxyHandler({
  _i2.dynamic Function(
    _i2.dynamic,
    _i2.List<_i2.dynamic>, [
    _i2.dynamic,
  ])? apply,
  _i2.Object Function(
    _i2.dynamic,
    _i2.List<_i2.dynamic>,
    _i2.Function,
  )? construct,
  _i2.bool Function(
    _i2.dynamic,
    _i2.Object,
    _i3.PropertyDescriptor,
  )? defineProperty,
  _i2.bool Function(
    _i2.dynamic,
    _i2.Object,
  )? deleteProperty,
  _i2.dynamic Function(
    _i2.dynamic,
    _i2.Object, [
    _i2.dynamic,
  ])? get,
  _i3.PropertyDescriptor? Function(
    _i2.dynamic,
    _i2.Object,
  )? getOwnPropertyDescriptor,
  _i2.Object? Function(_i2.dynamic)? getPrototypeOf,
  _i2.bool Function(
    _i2.dynamic,
    _i2.Object,
  )? has,
  _i2.bool Function(_i2.dynamic)? isExtensible,
  _i2.List<_i2.Object> Function(_i2.dynamic)? ownKeys,
  _i2.bool Function(_i2.dynamic)? preventExtensions,
  _i2.bool Function(
    _i2.dynamic,
    _i2.Object, [
    _i2.dynamic,
    _i2.dynamic,
  ])? set,
  _i2.bool Function(
    _i2.dynamic, [
    _i2.Object?,
  ])? setPrototypeOf,
}) =>
    ProxyHandler._(
      apply: apply == null ? null : _i4.allowInterop(apply),
      construct: construct == null ? null : _i4.allowInterop(construct),
      defineProperty:
          defineProperty == null ? null : _i4.allowInterop(defineProperty),
      deleteProperty:
          deleteProperty == null ? null : _i4.allowInterop(deleteProperty),
      get: get == null ? null : _i4.allowInterop(get),
      getOwnPropertyDescriptor: getOwnPropertyDescriptor == null
          ? null
          : _i4.allowInterop((
              p0,
              p1,
            ) =>
              () =>
                  getOwnPropertyDescriptor(
                    p0,
                    p1,
                  ) ??
                  _i5.undefined),
      getPrototypeOf: getPrototypeOf == null
          ? null
          : _i4.allowInterop(
              (p0) => () => getPrototypeOf(p0) ?? _i5.undefined),
      has: has == null ? null : _i4.allowInterop(has),
      isExtensible:
          isExtensible == null ? null : _i4.allowInterop(isExtensible),
      ownKeys: ownKeys == null ? null : _i4.allowInterop(ownKeys),
      preventExtensions: preventExtensions == null
          ? null
          : _i4.allowInterop(preventExtensions),
      set: set == null ? null : _i4.allowInterop(set),
      setPrototypeOf:
          setPrototypeOf == null ? null : _i4.allowInterop(setPrototypeOf),
    );