typeText property
String?
get
typeText
Retrieves the type of exception or error, if applicable.
Returns null for non-error logs.
Implementation
String? get typeText {
if (this is! ISpectLogError && this is! ISpectLogException) {
return null;
}
return 'Type: ${exception?.runtimeType ?? error?.runtimeType ?? ''}';
}