WeakReference<T extends Object> constructor
- T target
Creates a WeakReference pointing to the given target
.
The target
must be an object supported as an Expando key,
which means target
cannot be a number, a string, a boolean, a record,
the null
value, or certain other types of special objects.
Implementation
external factory WeakReference(T target);