StoryInstance constructor

StoryInstance({
  1. required String storyName,
  2. required String functionName,
})

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',
              ],
            ),
          ),
        ],
      );