UseCase class

Annotates a builder function which is used to create the WidgetbookComponent and UseCase for the Widgetbook

Constructors

UseCase({required String name, required Type type, String? designLink, String? path, KnobsConfigs? cloudKnobsConfigs, bool exclude = false, bool cloudExclude = false})
Creates a new annotation with name and type.
const

Properties

cloudExclude → bool
Whether to exclude this use-case from being processed by Widgetbook Cloud. All use-cases are included by default.
final
cloudKnobsConfigs → KnobsConfigs?
A map between the name of the configuration and the list of knobs configuration. This allows to create a matrix of knobs configurations to test on Widgetbook Cloud while taking snapshots.
final
A link to the design for the component or use-case.
final
exclude → bool
Whether to exclude this use-case from being processed. All use-cases are included by default.
final
hashCode → int
The hash code for this object.
no setterinherited
name → String
The name of the UseCase.
final
path → String?
A custom path for the use-case.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
type → Type
The type of the Widget shown in the UseCase. It is used to generate the WidgetbookComponent of the Widgetbook.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited