text property
String
get
text
Implementation
String get text {
final base = rest.trim().isEmpty ? action : '$action $rest';
final added = linesAdded == null ? null : '+$linesAdded';
final removed = linesRemoved == null ? null : '-$linesRemoved';
final counts = [?added, ?removed].join(' ');
return counts.isEmpty ? base : '$base ($counts)';
}