StoryContent.copyWith constructor

StoryContent.copyWith(
  1. StoryContent? content
)

Implementation

StoryContent.copyWith(StoryContent? content) {
  // ignore: invalid_null_aware_operator
  title = content?.title ?? 'Text';
  // ignore: invalid_null_aware_operator
  padding = content?.padding ?? const EdgeInsets.all(0);
  // ignore: invalid_null_aware_operator
  link = content?.link ?? StoryLink.createEmpty;
  // ignore: invalid_null_aware_operator
  animation = content?.animation ?? StoryAnimation.createEmpty;
  // ignore: invalid_null_aware_operator
  spacing = content?.spacing ?? StorySpacing.createEmpty;
  // ignore: invalid_null_aware_operator
  typography = content?.typography ?? StoryTypography.createEmpty;
}