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,
  6. String? fileType,
})

Implementation

Story({
  required super.name,
  super.designLink,
  this.setup = defaultSetup,
  required this.args,
  required this.argsBuilder,
  super.fileType, // Changed to String for icon representation
}) : super(
        builder: (context) =>
            const SizedBox.shrink(), // Pass fileType as a String
      );