BaseSwitch constructor

const BaseSwitch(
  1. {Key baseKey,
  2. Key key,
  3. bool value,
  4. ValueChanged<bool> onChanged,
  5. Color activeColor,
  6. Color trackColor,
  7. DragStartBehavior dragStartBehavior = DragStartBehavior.start,
  8. Color activeTrackColor,
  9. Color inactiveThumbColor,
  10. Color inactiveTrackColor,
  11. ImageProvider<Object> activeThumbImage,
  12. ImageProvider<Object> inactiveThumbImage,
  13. MaterialTapTargetSize materialTapTargetSize,
  14. Color focusColor,
  15. Color hoverColor,
  16. FocusNode focusNode,
  17. bool autofocus = false,
  18. Map<String, dynamic> cupertino,
  19. Map<String, dynamic> material}
)

Implementation

const BaseSwitch({
  Key baseKey,
  this.key,
  this.value,
  this.onChanged,
  this.activeColor,
  this.trackColor,
  this.dragStartBehavior = DragStartBehavior.start,
  this.activeTrackColor,
  this.inactiveThumbColor,
  this.inactiveTrackColor,
  this.activeThumbImage,
  this.inactiveThumbImage,
  this.materialTapTargetSize,
  this.focusColor,
  this.hoverColor,
  this.focusNode,
  this.autofocus = false,
  Map<String, dynamic> cupertino,
  Map<String, dynamic> material,
}) : super(key: baseKey, cupertino: cupertino, material: material);