target property

T? get target

Returns the object if still reachable.

  • Prefers strong reference
  • Falls back to weak reference

Implementation

T? get target => _strongRef ?? _weakRef?.target;