describeAppleSlices function

String describeAppleSlices(
  1. Iterable<AppleSliceCandidate> candidates
)

Implementation

String describeAppleSlices(Iterable<AppleSliceCandidate> candidates) {
  final values = candidates.map((candidate) => candidate.toString()).toList()
    ..sort();
  return values.isEmpty ? '(none)' : values.join(', ');
}