Questionnaire constructor

const Questionnaire({
  1. required String id,
  2. required String title,
  3. @Default('') String description,
  4. required List<Object> questions,
  5. @Default([]) List<Object> answers,
})

Implementation

const factory Questionnaire({
  required String id,
  required String title,
  @Default('') String description,
  required List<Object> questions,
  @Default([]) List<Object> answers,
}) = _Questionnaire;