logMutation static method

void logMutation(
  1. WhalePod pod,
  2. dynamic oldValue,
  3. dynamic newValue
)

Implementation

static void logMutation(WhalePod pod, dynamic oldValue, dynamic newValue) {
  if (!enabled || !kDebugMode) return;

  // Find pod name or generic type
  final typeStr = pod.runtimeType.toString();

  print('🐋 [WhaleState] Mutation: $typeStr changed from $oldValue -> $newValue');
}