getErrorContent static method
Implementation
static String getErrorContent(String? content,
{int maxLines = 3, int maxLength = 150}) {
if (isNullOrEmpty(content)) return '';
if (content!.length > maxLength) return content.substring(0,maxLength);
List<String> list = content.split('\n');
list = list.sublist(0,min(list.length, maxLines));
return list.join('\n');
}