Story<TWidget extends Widget, TArgs extends StoryArgs<TWidget>> constructor

Story<TWidget extends Widget, TArgs extends StoryArgs<TWidget>>({
  1. required String name,
  2. String? designLink,
  3. SetupBuilder<TArgs> setup = defaultSetup,
  4. required TArgs args,
  5. required ArgsBuilder<TWidget, TArgs> argsBuilder,
})

Implementation

Story({
  required super.name,
  super.designLink,
  this.setup = defaultSetup,
  required this.args,
  required this.argsBuilder,
}) : super(
        builder: (context) => const SizedBox.shrink(), // TODO: remove
      );