typeText property

String? get typeText

Exception/error runtime type label, or null for non-error logs.

Implementation

String? get typeText {
  if (this is ISpectLogException) return 'Type: Exception';
  if (this is ISpectLogError) return 'Type: Error';
  return null;
}