StoryInstance constructor
Creates a new instance of StoryInstance
Implementation
StoryInstance({
required String storyName,
required String functionName,
}) : super(
name: 'Story',
properties: [
Property.string(
key: 'name',
value: storyName,
),
Property(
key: 'builder',
instance: LambdaInstance(
name: functionName,
parameters: const [
'context',
],
),
),
],
);