notifyIntentFailed static method

void notifyIntentFailed(
  1. JIntent<JState> intent,
  2. Object error,
  3. StackTrace stackTrace
)

Called by the intent when its execution fails.

Implementation

static void notifyIntentFailed(
  JIntent intent,
  Object error,
  StackTrace stackTrace,
) {
  final callback = onIntentFailed;
  if (callback == null && _delegates.isEmpty) return;
  _notify(
    'intent failed',
    (d) => d.onIntentFailed(intent, error, stackTrace),
    callback == null ? null : () => callback(intent, error, stackTrace),
  );
}