CellListTile class

ListTile widget with its properties controlled by ValueCells.

The constructor takes the same arguments as the unnamed constructor of ListTile, but as ValueCell's. This binds each property value to the ValueCell given in the constructor. If the cell value is changed, the value of the corresponding property to which it is bound is automatically updated to reflect the value of the cell.

Inheritance

Constructors

CellListTile({Key? key, ValueCell<Widget?>? leading, ValueCell<Widget?>? title, ValueCell<Widget?>? subtitle, ValueCell<Widget?>? trailing, ValueCell<bool> isThreeLine = const ValueCell.value(false), ValueCell<bool?>? dense, ValueCell<VisualDensity?>? visualDensity, ValueCell<ShapeBorder?>? shape, ValueCell<ListTileStyle?>? style, ValueCell<Color?>? selectedColor, ValueCell<Color?>? iconColor, ValueCell<Color?>? textColor, ValueCell<TextStyle?>? titleTextStyle, ValueCell<TextStyle?>? subtitleTextStyle, ValueCell<TextStyle?>? leadingAndTrailingTextStyle, ValueCell<EdgeInsetsGeometry?>? contentPadding, ValueCell<bool> enabled = const ValueCell.value(true), ValueCell<void Function()?>? onTap, ValueCell<void Function()?>? onLongPress, ValueCell<void Function(bool)?>? onFocusChange, ValueCell<MouseCursor?>? mouseCursor, ValueCell<bool> selected = const ValueCell.value(false), ValueCell<Color?>? focusColor, ValueCell<Color?>? hoverColor, ValueCell<Color?>? splashColor, ValueCell<FocusNode?>? focusNode, ValueCell<bool> autofocus = const ValueCell.value(false), ValueCell<Color?>? tileColor, ValueCell<Color?>? selectedTileColor, ValueCell<bool?>? enableFeedback, ValueCell<double?>? horizontalTitleGap, ValueCell<double?>? minVerticalPadding, ValueCell<double?>? minLeadingWidth, ValueCell<double?>? minTileHeight, ValueCell<ListTileTitleAlignment?>? titleAlignment})
const

Properties

autofocus ValueCell<bool>
final
contentPadding ValueCell<EdgeInsetsGeometry?>?
final
dense ValueCell<bool?>?
final
enabled ValueCell<bool>
final
enableFeedback ValueCell<bool?>?
final
focusColor ValueCell<Color?>?
final
focusNode ValueCell<FocusNode?>?
final
hashCode int
The hash code for this object.
no setterinherited
horizontalTitleGap ValueCell<double?>?
final
hoverColor ValueCell<Color?>?
final
iconColor ValueCell<Color?>?
final
isThreeLine ValueCell<bool>
final
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
leading ValueCell<Widget?>?
final
leadingAndTrailingTextStyle ValueCell<TextStyle?>?
final
minLeadingWidth ValueCell<double?>?
final
minTileHeight ValueCell<double?>?
final
minVerticalPadding ValueCell<double?>?
final
mouseCursor ValueCell<MouseCursor?>?
final
onFocusChange ValueCell<void Function(bool)?>?
final
onLongPress ValueCell<void Function()?>?
final
onTap ValueCell<void Function()?>?
final
restorationId String?
Restoration ID to use for restoring the cell state
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
selected ValueCell<bool>
final
selectedColor ValueCell<Color?>?
final
selectedTileColor ValueCell<Color?>?
final
shape ValueCell<ShapeBorder?>?
final
splashColor ValueCell<Color?>?
final
style ValueCell<ListTileStyle?>?
final
subtitle ValueCell<Widget?>?
final
subtitleTextStyle ValueCell<TextStyle?>?
final
textColor ValueCell<Color?>?
final
tileColor ValueCell<Color?>?
final
title ValueCell<Widget?>?
final
titleAlignment ValueCell<ListTileTitleAlignment?>?
final
titleTextStyle ValueCell<TextStyle?>?
final
trailing ValueCell<Widget?>?
final
visualDensity ValueCell<VisualDensity?>?
final

Methods

bind({ValueCell<Widget?>? leading, ValueCell<Widget?>? title, ValueCell<Widget?>? subtitle, ValueCell<Widget?>? trailing, ValueCell<bool>? isThreeLine, ValueCell<bool?>? dense, ValueCell<VisualDensity?>? visualDensity, ValueCell<ShapeBorder?>? shape, ValueCell<ListTileStyle?>? style, ValueCell<Color?>? selectedColor, ValueCell<Color?>? iconColor, ValueCell<Color?>? textColor, ValueCell<TextStyle?>? titleTextStyle, ValueCell<TextStyle?>? subtitleTextStyle, ValueCell<TextStyle?>? leadingAndTrailingTextStyle, ValueCell<EdgeInsetsGeometry?>? contentPadding, ValueCell<bool>? enabled, ValueCell<void Function()?>? onTap, ValueCell<void Function()?>? onLongPress, ValueCell<void Function(bool)?>? onFocusChange, ValueCell<MouseCursor?>? mouseCursor, ValueCell<bool>? selected, ValueCell<Color?>? focusColor, ValueCell<Color?>? hoverColor, ValueCell<Color?>? splashColor, ValueCell<FocusNode?>? focusNode, ValueCell<bool>? autofocus, ValueCell<Color?>? tileColor, ValueCell<Color?>? selectedTileColor, ValueCell<bool?>? enableFeedback, ValueCell<double?>? horizontalTitleGap, ValueCell<double?>? minVerticalPadding, ValueCell<double?>? minLeadingWidth, ValueCell<double?>? minTileHeight, ValueCell<ListTileTitleAlignment?>? titleAlignment}) CellListTile
build(BuildContext context) Widget
Describes the part of the user interface represented by this widget.
override
createElement() StatelessElement
Creates a StatelessElement to manage this widget's location in the tree.
inherited
debugDescribeChildren() List<DiagnosticsNode>
Returns a list of DiagnosticsNode objects describing this node's children.
inherited
debugFillProperties(DiagnosticPropertiesBuilder properties) → void
Add additional properties associated with the node.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toDiagnosticsNode({String? name, DiagnosticsTreeStyle? style}) DiagnosticsNode
Returns a debug representation of the object that is used by debugging tools and by DiagnosticsNode.toStringDeep.
inherited
toString({DiagnosticLevel minLevel = DiagnosticLevel.info}) String
A string representation of this object.
inherited
toStringDeep({String prefixLineOne = '', String? prefixOtherLines, DiagnosticLevel minLevel = DiagnosticLevel.debug}) String
Returns a string representation of this node and its descendants.
inherited
toStringShallow({String joiner = ', ', DiagnosticLevel minLevel = DiagnosticLevel.debug}) String
Returns a one-line detailed description of the object.
inherited
toStringShort() String
A short, textual description of this widget.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited