summary property

String get summary

The one-line version of refusal — what a list of events has room for.

A refusal's own message is several paragraphs, because it is written to be read by somebody who has just been surprised. A column in a table is not that reader.

Implementation

String get summary => switch (refusal) {
  null => '$status',
  var text => _firstLine(text),
};