Libro constructor

Libro({
  1. required String titolo,
  2. List<String>? autori,
  3. int? numeroPagine,
  4. GenereLibro? genere,
  5. String? lingua,
  6. String? trama,
  7. required String isbn,
  8. DateTime? dataPubblicazione,
  9. double? voto,
  10. String? copertina,
  11. String? note,
  12. StatoLibro? stato,
  13. String? publisher,
  14. bool preferito = false,
})

Costruttore per creare un oggetto Libro con le informazioni principali.

Implementation

Libro({
  required this.titolo,
  this.autori,
  this.numeroPagine,
  this.genere,
  this.lingua,
  this.trama,
  required this.isbn,
  this.dataPubblicazione,
  this.voto,
  this.copertina,
  this.note,
  this.stato,
  this.publisher,
  this.preferito = false,
});