PaperItem constructor Null safety

const PaperItem(
  1. {Key? key,
  2. required PaperModel paperModel,
  3. bool isOffline = false,
  4. String subject = "physics"}
)

Implementation

const PaperItem({
  Key? key,
  required this.paperModel,
  this.isOffline = false,
  this.subject = "physics",
}) : super(key: key);