Story<TWidget extends Widget, TArgs extends StoryArgs<TWidget> > constructor
Story<TWidget extends Widget, TArgs extends StoryArgs<TWidget> > ({
- required String name,
- String? designLink,
- SetupBuilder<
TArgs> setup = defaultSetup, - required TArgs args,
- required ArgsBuilder<
TWidget, TArgs> argsBuilder, - 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
);