targetIfStrong property

T? get targetIfStrong

Returns the object only if currently held strongly.

Does not access WeakReference.target. Returns null if weak, lost, or disposed.

See target.

Implementation

T? get targetIfStrong => _strongRef;