logRxChange<T> static method

void logRxChange<T>(
  1. SwiftValue<T> rx,
  2. T oldValue,
  3. T newValue
)

Log Rx value change

Implementation

static void logRxChange<T>(SwiftValue<T> rx, T oldValue, T newValue) {
  if (!DebugMode.isVerboseLogging) return;
  logWithContext(
    'Rx value changed',
    data: {'old': oldValue, 'new': newValue},
    context: {'type': rx.runtimeType.toString()},
  );
}