setTrackerWithoutRebuild static method

void setTrackerWithoutRebuild(
  1. void trackFunc(
    1. ValueNotifier
    )
)

Set a tracker that doesn't log tracking events

This method is specifically designed for the optimized Obx widget to silently track dependencies without logging or triggering additional rebuilds. It's used when we need to collect dependencies but don't want to rebuild the widget if the output hasn't changed.

trackFunc - Function that will be called when an Rx value is accessed

Implementation

static void setTrackerWithoutRebuild(void Function(ValueNotifier) trackFunc) {
  _tracker = trackFunc;
  // No logging here to avoid cluttering logs during dependency collection
}