MaterialSwitchData constructor

MaterialSwitchData(
  1. {Key widgetKey,
  2. bool value,
  3. ValueChanged<bool> onChanged,
  4. Color activeColor,
  5. DragStartBehavior dragStartBehavior,
  6. Color activeTrackColor,
  7. Color inactiveThumbColor,
  8. Color inactiveTrackColor,
  9. ImageProvider<Object> activeThumbImage,
  10. ImageProvider<Object> inactiveThumbImage,
  11. MaterialTapTargetSize materialTapTargetSize,
  12. Color focusColor,
  13. Color hoverColor,
  14. FocusNode focusNode,
  15. bool autofocus,
  16. ImageErrorListener onActiveThumbImageError,
  17. ImageErrorListener onInactiveThumbImageError,
  18. MouseCursor mouseCursor}
)

Implementation

MaterialSwitchData({
  Key widgetKey,
  bool value,
  ValueChanged<bool> onChanged,
  Color activeColor,
  DragStartBehavior dragStartBehavior,
  this.activeTrackColor,
  this.inactiveThumbColor,
  this.inactiveTrackColor,
  this.activeThumbImage,
  this.inactiveThumbImage,
  this.materialTapTargetSize,
  this.focusColor,
  this.hoverColor,
  this.focusNode,
  this.autofocus,
  this.onActiveThumbImageError,
  this.onInactiveThumbImageError,
  this.mouseCursor,
}) : super(
        widgetKey: widgetKey,
        value: value,
        onChanged: onChanged,
        activeColor: activeColor,
        dragStartBehavior: dragStartBehavior,
      );