getNumNote method

int getNumNote()

Restituisce il numero di libri che hanno note non vuote. @return Numero di libri con note.

Implementation

int getNumNote() {
  return libreria
      .getLibri()
      .where((l) => (l.note?.isNotEmpty ?? false))
      .length;
}