condition property

  1. @override
bool Function(C) get condition
override

Optional condition to determine if this node should be skipped.

Implementation

@override
// 🛡️ THE GLOBAL FIX: Every wrapper now automatically delegates its condition
bool Function(C) get condition => (context) {
  final canRun = firstTask.condition(context);
  // We keep the print here so you can still spy on the delegation
  print(
    "🔄 [${this.runtimeType}] Delegating condition to ${firstTask.runtimeType}: $canRun",
  );
  return canRun;
};