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