displayText property

String get displayText

Best-effort display string — message if present, else the first suggestion, else a neutral placeholder. UI can render this directly.

Implementation

String get displayText {
  final m = message?.trim();
  if (m != null && m.isNotEmpty) return m;
  if (suggestions.isNotEmpty) return suggestions.first;
  return 'Syni had no response.';
}