UseCase constructor

const UseCase({
  1. required String name,
  2. required Type type,
  3. required String fileType,
  4. String? designLink,
  5. String? path,
})

Creates a new annotation with name and type.

The name defines how the UseCase will show in the navigation area of the widgetbook.

The type defines the Widget rendered with the UseCase. Therefore, it is used to create the WidgetElement of the Widgetbook

Implementation

const UseCase({
  required this.name,
  required this.type,
  required this.fileType,
  this.designLink,
  this.path,
});