use<T> method

  1. @override
T use<T>(
  1. LogicRef<T> ref
)
override

Gets the current logic component referenced by ref.

Implementation

@override
T use<T>(LogicRef<T> ref) {
  onUse?.call(ref);
  return _states.putIfAbsent(ref.key, () => ref.create(this)) as T;
}