cachedHasWeakValues property
bool
get
cachedHasWeakValues
Cached-only check for weak-values mode, using the last observed '__mode' string from setMetatable. Useful when the live metatable is already freed but we still need to honor semantics for this cycle.
Implementation
bool get cachedHasWeakValues => _cachedWeakMode?.contains('v') ?? false;