CBasic<T extends Conjured> constructor

const CBasic<T extends Conjured>({
  1. Key? key,
  2. required T model,
  3. Widget? leading,
  4. Widget? title,
  5. Widget? subtitle,
  6. Widget? content,
  7. Widget? trailing,
  8. AlignmentGeometry? leadingAlignment,
  9. AlignmentGeometry? trailingAlignment,
  10. AlignmentGeometry? titleAlignment,
  11. AlignmentGeometry? subtitleAlignment,
  12. AlignmentGeometry? contentAlignment,
  13. double? contentSpacing,
  14. double? titleSpacing,
  15. MainAxisAlignment mainAxisAlignment = MainAxisAlignment.center,
  16. EdgeInsetsGeometry? padding,
})

Creates a CBasic widget for displaying a Conjured model.

The model parameter is required and must implement Conjured. Other parameters allow customizing the layout and appearance of the component.

If title is null and model implements ConjuredTitle, a CTitle widget will be used to display the title.

If subtitle is null and model implements ConjuredSubtitle, a CSubtitle widget will be used to display the subtitle.

Implementation

const CBasic({
  super.key,
  required this.model,
  this.leading,
  this.title,
  this.subtitle,
  this.content,
  this.trailing,
  this.leadingAlignment,
  this.trailingAlignment,
  this.titleAlignment,
  this.subtitleAlignment,
  this.contentAlignment,
  this.contentSpacing, // 16
  this.titleSpacing, //4
  this.mainAxisAlignment = MainAxisAlignment.center,
  this.padding,
});