CCard<T extends Conjured> constructor
const
CCard<T extends Conjured> ({
- Key? key,
- required T model,
- 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});