ListTileSwitch class

Inheritance

Constructors

ListTileSwitch({Key? key, required bool value, required ValueChanged<bool> onChanged, double switchScale = 0.7, Color? switchActiveColor = Colors.blue, Color? switchInactiveColor, Widget? title, Widget? subtitle, Widget? leading, bool enabled = true, bool isThreeLine = false, SwitchType switchType = SwitchType.custom, EdgeInsetsGeometry? contentPadding, VoidCallback? onLongPress, VisualDensity? visualDensity, bool? dense = false, FocusNode? focusNode, bool autoFocus = false, bool selected = false, Color? focusColor, Color? hoverColor, MouseCursor? mouseCursor, bool? toggleSelectedOnValueChange = false, ListTileStyle listTileStyle = ListTileStyle.list})
const

Properties

autoFocus bool
final
contentPadding EdgeInsetsGeometry?
final
dense bool?
final
enabled bool
final
focusColor Color?
final
focusNode FocusNode?
final
hashCode int
The hash code for this object.
no setterinherited
hoverColor Color?
final
isThreeLine bool
final
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
leading Widget?
Referring to properties of ListTile Values directly mapped into the ListTileSwitch.
final
listTileStyle ListTileStyle
Sets the ListTileStyle for the inherited ListTileTheme.
final
mouseCursor MouseCursor?
final
onChanged ValueChanged<bool>
Similar to Switch.onChanged and CupertinoSwitch.onChanged.
final
onLongPress VoidCallback?
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
selected bool
final
subtitle Widget?
final
switchActiveColor Color?
Color of switch background color and ListTileTheme.selectedColor.
final
switchInactiveColor Color?
Color value when switch is value is false.
final
switchScale double
Prefer using switchScale = 1.0 for Material type Switch.
final
switchType SwitchType
final
title Widget?
final
toggleSelectedOnValueChange bool?
A value for deciding whether make ListTile widget selected or not. If true, ListTileTheme.selectedColor will be the value of activeSwitchColor.
final
value bool
Referring to both Switch.value and CupertinoSwitch.value, holding the current state of the switch widget.
final
visualDensity VisualDensity?
final

Methods

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