sentinel property

String sentinel

Implementation

String get sentinel {
  final hasStart = isStart == true && isEnd == false;
  final hasEnd = isEnd == true && isStart == false;

  if (hasStart) {
    return '(START)';
  }

  if (hasEnd) {
    return '(END${duration == null ? '' : ' after ${duration!.inMilliseconds}ms'})';
  }

  return '';
}