ViewerSectionUnion.component constructor
const
ViewerSectionUnion.component({
- required String id,
- required String title,
- String? description,
- required String ctorName,
- String? designLink,
- required ViewerWidgetBuilder builder,
- @Default([]) List<
ViewerComponentExample> examples, - required ViewerSourceCode sourceCode,
Implementation
const factory ViewerSectionUnion.component({
/// Id of the section.
required String id,
/// Title of the section.
required String title,
/// Description of the section.
String? description,
/// Name of the widget constructor.
required String ctorName,
/// Link to a design file of the widget.
String? designLink,
/// Widget builder to construct the widget with available data builders.
required ViewerWidgetBuilder builder,
/// Examples with the constructor
@Default([]) List<ViewerComponentExample> examples,
/// Widget source code information.
required ViewerSourceCode sourceCode,
}) = ViewerComponentSection;