use<T> method

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

Gets the instance of the business logic component referenced by ref.

Cannot be called while building a widget.

Implementation

T use<T>(LogicRef<T> ref) {
  assert(!debugDoingBuild, 'Cannot call use() while building a widget.');
  return readScope().use(ref);
}