getNumNote method
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;
}
Restituisce il numero di libri che hanno note non vuote. @return Numero di libri con note.
int getNumNote() {
return libreria
.getLibri()
.where((l) => (l.note?.isNotEmpty ?? false))
.length;
}