smartNotesByDate top-level property

Comparator<SmartNotesItem> smartNotesByDate
final

Implementation

final Comparator<SmartNotesItem> smartNotesByDate = (a, b) {
  final aDate = a.smartNoteDate ?? DateTime.now();
  final bDate = b.smartNoteDate ?? DateTime.now();
  return bDate.compareTo(aDate);
};