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