StoryContent.copyWithEmpty constructor

StoryContent.copyWithEmpty({
  1. String? title,
  2. EdgeInsets? padding,
  3. StoryLink? link,
  4. StoryTypography? typography,
  5. StoryAnimation? animation,
  6. StorySpacing? spacing,
})

Implementation

StoryContent.copyWithEmpty({
  String? title,
  EdgeInsets? padding,
  StoryLink? link,
  StoryTypography? typography,
  StoryAnimation? animation,
  StorySpacing? spacing,
}) {
  this.title = title ?? 'Text';
  this.padding = padding ?? const EdgeInsets.all(0);
  this.link = link ?? StoryLink.createEmpty;
  this.animation = animation ?? StoryAnimation.createEmpty;
  this.spacing = spacing ?? StorySpacing.createEmpty;
  this.typography = typography ?? StoryTypography.createEmpty;
}