Story constructor

const Story({
  1. Key? key,
  2. required String name,
  3. required StoryBuilder builder,
  4. String section = '',
  5. Color? background,
  6. EdgeInsets padding = const EdgeInsets.all(16),
  7. StoryWrapperBuilder? wrapperBuilder,
})

Implementation

const Story({
  Key? key,
  required this.name,
  required StoryBuilder builder,
  this.section = '',
  this.background,
  this.padding = const EdgeInsets.all(16),
  this.wrapperBuilder,
})  : _builder = builder,
      super(key: key);