overrideWithSelf method

BinderOverride<T> overrideWithSelf()

Overrides the logic component with the same factory. This can be useful when we want to explicitely choose the scope where the logic is created. For example when we override a StateRef we also want to override any LogicRef, which will use this StateRef, under the same BinderScope.

Implementation

BinderOverride<T> overrideWithSelf() {
  return BinderOverride<T>._(key, create);
}