StoryBookModel constructor Null safety

StoryBookModel(
  1. {required String storyTitle,
  2. required String storyDescription,
  3. required StoryElementModel story,
  4. List<StoryActionModel>? storyActions,
  5. String? subStoryDescription,
  6. IconData? iconData,
  7. required String sourceStoryFilePath,
  8. SyntaxHighlighterStyle? syntaxHighlighterStyle}
)

Implementation

StoryBookModel({
  required this.storyTitle,
  required this.storyDescription,
  required this.story,
  this.storyActions,
  this.subStoryDescription,
  this.iconData,    required this.sourceStoryFilePath,
  this.syntaxHighlighterStyle,
});