toLongString method
Implementation
String toLongString() {
return Switcher.of(this.difference(Date.now()))
.predicate((diff) => diff.inDays.abs() > WEEK, Methods.using(toDMYYYYString))
.predicate((diff) => diff.inDays.abs() > 1, Methods.value(formatDate(this.toDateTime(), [DD])))
.key(Duration(days: -1), Methods.value('Yesterday'))
.key(Duration(days: 1), Methods.value('Tomorrow'))
.orElse('Today');
}