defaultTail static method

String defaultTail([
  1. DateTime? now
])

Builds a sensible default tail based on the time of day. Mirrors the existing _HomeGreeting rotation.

Implementation

static String defaultTail([DateTime? now]) {
  final t = now ?? DateTime.now();
  final h = t.hour;
  if (h < 11) return 'then coffee.';
  if (h < 14) return 'then lunch.';
  if (h < 17) return 'then a walk.';
  if (h < 20) return 'then dinner.';
  return 'then bed.';
}