toCsvRow method
Implementation
String toCsvRow() {
final csvValues = [
testName,
startTime.toIso8601String(),
endTime.toIso8601String(),
status,
message,
result != null
? (resultSerializer != null
? resultSerializer!(result as T)
: result.toString())
: '',
exception ?? '',
stackTrace ?? '',
];
return csvValues.map((v) => '"${v.replaceAll('"', '""')}"').join(',');
}