bind method
LiveSwitchListTile
bind({
- ValueCell<
bool> ? enabled, - MutableCell<
bool> ? value, - Color? activeColor,
- Color? activeTrackColor,
- Color? inactiveThumbColor,
- Color? inactiveTrackColor,
- ImageProvider<
Object> ? activeThumbImage, - void onActiveThumbImageError()?,
- ImageProvider<
Object> ? inactiveThumbImage, - void onInactiveThumbImageError()?,
- WidgetStateProperty<
Color?> ? thumbColor, - WidgetStateProperty<
Color?> ? trackColor, - WidgetStateProperty<
Color?> ? trackOutlineColor, - WidgetStateProperty<
Icon?> ? thumbIcon, - MaterialTapTargetSize? materialTapTargetSize,
- DragStartBehavior? dragStartBehavior,
- MouseCursor? mouseCursor,
- WidgetStateProperty<
Color?> ? overlayColor, - double? splashRadius,
- FocusNode? focusNode,
- void onFocusChange()?,
- bool? autofocus,
- Color? tileColor,
- Widget? title,
- Widget? subtitle,
- bool? isThreeLine,
- bool? dense,
- EdgeInsetsGeometry? contentPadding,
- Widget? secondary,
- bool? selected,
- ListTileControlAffinity? controlAffinity,
- ShapeBorder? shape,
- Color? selectedTileColor,
- VisualDensity? visualDensity,
- bool? enableFeedback,
- Color? hoverColor,
Implementation
LiveSwitchListTile bind({
ValueCell<bool>? enabled,
MutableCell<bool>? value,
Color? activeColor,
Color? activeTrackColor,
Color? inactiveThumbColor,
Color? inactiveTrackColor,
ImageProvider<Object>? activeThumbImage,
void Function(Object, StackTrace?)? onActiveThumbImageError,
ImageProvider<Object>? inactiveThumbImage,
void Function(Object, StackTrace?)? onInactiveThumbImageError,
WidgetStateProperty<Color?>? thumbColor,
WidgetStateProperty<Color?>? trackColor,
WidgetStateProperty<Color?>? trackOutlineColor,
WidgetStateProperty<Icon?>? thumbIcon,
MaterialTapTargetSize? materialTapTargetSize,
DragStartBehavior? dragStartBehavior,
MouseCursor? mouseCursor,
WidgetStateProperty<Color?>? overlayColor,
double? splashRadius,
FocusNode? focusNode,
void Function(bool)? onFocusChange,
bool? autofocus,
Color? tileColor,
Widget? title,
Widget? subtitle,
bool? isThreeLine,
bool? dense,
EdgeInsetsGeometry? contentPadding,
Widget? secondary,
bool? selected,
ListTileControlAffinity? controlAffinity,
ShapeBorder? shape,
Color? selectedTileColor,
VisualDensity? visualDensity,
bool? enableFeedback,
Color? hoverColor,
}) =>
LiveSwitchListTile(
enabled: enabled ?? this.enabled,
value: value ?? this.value,
activeColor: activeColor ?? this.activeColor,
activeTrackColor: activeTrackColor ?? this.activeTrackColor,
inactiveThumbColor: inactiveThumbColor ?? this.inactiveThumbColor,
inactiveTrackColor: inactiveTrackColor ?? this.inactiveTrackColor,
activeThumbImage: activeThumbImage ?? this.activeThumbImage,
onActiveThumbImageError:
onActiveThumbImageError ?? this.onActiveThumbImageError,
inactiveThumbImage: inactiveThumbImage ?? this.inactiveThumbImage,
onInactiveThumbImageError:
onInactiveThumbImageError ?? this.onInactiveThumbImageError,
thumbColor: thumbColor ?? this.thumbColor,
trackColor: trackColor ?? this.trackColor,
trackOutlineColor: trackOutlineColor ?? this.trackOutlineColor,
thumbIcon: thumbIcon ?? this.thumbIcon,
materialTapTargetSize:
materialTapTargetSize ?? this.materialTapTargetSize,
dragStartBehavior: dragStartBehavior ?? this.dragStartBehavior,
mouseCursor: mouseCursor ?? this.mouseCursor,
overlayColor: overlayColor ?? this.overlayColor,
splashRadius: splashRadius ?? this.splashRadius,
focusNode: focusNode ?? this.focusNode,
onFocusChange: onFocusChange ?? this.onFocusChange,
autofocus: autofocus ?? this.autofocus,
tileColor: tileColor ?? this.tileColor,
title: title ?? this.title,
subtitle: subtitle ?? this.subtitle,
isThreeLine: isThreeLine ?? this.isThreeLine,
dense: dense ?? this.dense,
contentPadding: contentPadding ?? this.contentPadding,
secondary: secondary ?? this.secondary,
selected: selected ?? this.selected,
controlAffinity: controlAffinity ?? this.controlAffinity,
shape: shape ?? this.shape,
selectedTileColor: selectedTileColor ?? this.selectedTileColor,
visualDensity: visualDensity ?? this.visualDensity,
enableFeedback: enableFeedback ?? this.enableFeedback,
hoverColor: hoverColor ?? this.hoverColor,
);