ListTile.selectable constructor
const
ListTile.selectable({
- Key? key,
- ButtonState<
Color> ? tileColor, - ShapeBorder shape = kDefaultListTileShape,
- Widget? leading,
- Widget? title,
- Widget? subtitle,
- Widget? trailing,
- VoidCallback? onPressed,
- FocusNode? focusNode,
- bool autofocus = false,
- bool selected = false,
- ListTileSelectionMode selectionMode = ListTileSelectionMode.single,
- ValueChanged<
bool> ? onSelectionChange, - String? semanticLabel,
- MouseCursor? cursor,
- CrossAxisAlignment contentAlignment = CrossAxisAlignment.center,
- EdgeInsetsGeometry contentPadding = kDefaultListTilePadding,
A selectable list tile.
Implementation
const ListTile.selectable({
super.key,
this.tileColor,
this.shape = kDefaultListTileShape,
this.leading,
this.title,
this.subtitle,
this.trailing,
this.onPressed,
this.focusNode,
this.autofocus = false,
this.selected = false,
this.selectionMode = ListTileSelectionMode.single,
this.onSelectionChange,
this.semanticLabel,
this.cursor,
this.contentAlignment = CrossAxisAlignment.center,
this.contentPadding = kDefaultListTilePadding,
}) : assert(
subtitle != null ? title != null : true,
'To have a subtitle, there must be a title',
);