Gets the current logic component referenced by ref.
ref
@override T use<T>(LogicRef<T> ref) { onUse?.call(ref); return _states.putIfAbsent(ref.key, () => ref.create(this)) as T; }