ProxyHandler<T extends Object> constructor
ProxyHandler<T extends Object> ({
- dynamic apply(
- dynamic,
- List, [
- dynamic
- Object construct()?,
- bool defineProperty(
- dynamic,
- Object,
- PropertyDescriptor
- bool deleteProperty(
- dynamic,
- Object
- dynamic get(
- dynamic,
- Object, [
- dynamic
- PropertyDescriptor? getOwnPropertyDescriptor(
- dynamic,
- Object
- Object? getPrototypeOf(
- dynamic
- bool has(
- dynamic,
- Object
- bool isExtensible(
- dynamic
- List<
Object> ownKeys(- dynamic
- bool preventExtensions(
- dynamic
- bool set(
- dynamic,
- Object, [
- dynamic,
- dynamic,
- bool setPrototypeOf(
- dynamic, [
- 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),
);