getAttributes method Null safety

List<Easy> getAttributes()

Implementation

List<Easy> getAttributes(){
  return [generalKnowledge,art,entertainment,science,mythology,history,sports];
}