AppComponentMeta constructor
const
AppComponentMeta({
- required String id,
- required String name,
- required ComponentCategory category,
- required ComponentStatus status,
- required LocalizedText summary,
- LocalizedText? description,
- LocalizedList whenToUse = const LocalizedList.empty(),
- LocalizedList whenNotToUse = const LocalizedList.empty(),
- List<
PropMeta> props = const <PropMeta>[], - List<
String> variants = const <String>[], - List<
String> states = const <String>[], - List<
CodeExample> examples = const <CodeExample>[], - LocalizedList dos = const LocalizedList.empty(),
- LocalizedList donts = const LocalizedList.empty(),
- LocalizedText? a11y,
- bool crossPlatform = false,
- bool themeAware = false,
- bool reducesMotion = false,
Creates an AppComponentMeta.
Implementation
const AppComponentMeta({
required this.id,
required this.name,
required this.category,
required this.status,
required this.summary,
this.description,
this.whenToUse = const LocalizedList.empty(),
this.whenNotToUse = const LocalizedList.empty(),
this.props = const <PropMeta>[],
this.variants = const <String>[],
this.states = const <String>[],
this.examples = const <CodeExample>[],
this.dos = const LocalizedList.empty(),
this.donts = const LocalizedList.empty(),
this.a11y,
this.crossPlatform = false,
this.themeAware = false,
this.reducesMotion = false,
this.related = const <String>[],
});