AppComponentMeta constructor

const AppComponentMeta({
  1. required String id,
  2. required String name,
  3. required ComponentCategory category,
  4. required ComponentStatus status,
  5. required LocalizedText summary,
  6. LocalizedText? description,
  7. LocalizedList whenToUse = const LocalizedList.empty(),
  8. LocalizedList whenNotToUse = const LocalizedList.empty(),
  9. List<PropMeta> props = const <PropMeta>[],
  10. List<String> variants = const <String>[],
  11. List<String> states = const <String>[],
  12. List<CodeExample> examples = const <CodeExample>[],
  13. LocalizedList dos = const LocalizedList.empty(),
  14. LocalizedList donts = const LocalizedList.empty(),
  15. LocalizedText? a11y,
  16. bool crossPlatform = false,
  17. bool themeAware = false,
  18. bool reducesMotion = false,
  19. List<String> related = const <String>[],
})

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