CListTile<T extends Conjured> constructor

const CListTile<T extends Conjured>({
  1. Key? key,
  2. required T model,
  3. VoidCallback? onPressed,
  4. Widget? leading,
  5. Widget? trailing,
})

Creates a CListTile widget.

The model parameter is required and must implement Conjured. The onPressed parameter is optional and will be called when the tile is tapped. The leading and trailing parameters are optional widgets to display at the start and end of the tile.

Example:

CListTile(
  model: User(name: "John Doe", email: "john@example.com"),
  leading: CircleAvatar(child: Text("JD")),
  trailing: Icon(Icons.chevron_right),
  onPressed: () => print("Tile tapped"),
)

Implementation

const CListTile(
    {super.key,
    required this.model,
    this.onPressed,
    this.leading,
    this.trailing});