CCard<T extends Conjured> constructor

const CCard<T extends Conjured>({
  1. Key? key,
  2. required T model,
  3. VoidCallback? onPressed,
})

Creates a CCard widget.

The model parameter is required and must implement Conjured. The onPressed parameter is optional and will be called when the card is tapped.

Example:

CCard(
  model: User(name: "John Doe", email: "john@example.com"),
  onPressed: () => print("Card tapped"),
)

Implementation

const CCard({super.key, required this.model, this.onPressed});