Lesser known classes and functions from the Dart core libraries

You can even use the direct assignation, it will respect the record naming:

  final (:start, :end) = getDayBoundaries(DateTime.now());
  print('Day start: ${start}, day end: ${end}');
4 Likes