effectiveFailureMessage property
String
get
effectiveFailureMessage
Stable human-readable failure text shared by every report projection.
Older execution paths populated message, while newer paths can retain only structured failure details. Reporters must not choose different fallbacks for those two representations.
Implementation
String get effectiveFailureMessage {
final legacy = message?.trim();
if (legacy != null && legacy.isNotEmpty) return message!;
final structured = failure?.message.trim();
if (structured != null && structured.isNotEmpty) return failure!.message;
return 'failed';
}