const
Switch(- {Key? key,
- required bool value,
- FormBoolField? field,
- Color? activeColor,
- Color? activeTrackColor,
- Color? inactiveThumbColor,
- Color? inactiveTrackColor,
- ImageProvider? activeThumbImage,
- ImageProvider? inactiveThumbImage,
- MaterialStateProperty? thumbColor,
- MaterialStateProperty? trackColor,
- MaterialTapTargetSize? materialTapTargetSize,
- DragStartBehavior dragStartBehavior,
- MouseCursor? mouseCursor,
- Color? focusColor,
- Color? hoverColor,
- MaterialStateProperty? overlayColor,
- double? splashRadius,
- BoolSelectionCallback? onFocusChange,
- bool autofocus}
)
Implementation
const factory Switch(
{final Key? key,
required final bool value,
final FormBoolField? field,
final Color? activeColor,
final Color? activeTrackColor,
final Color? inactiveThumbColor,
final Color? inactiveTrackColor,
final ImageProvider? activeThumbImage,
final ImageProvider? inactiveThumbImage,
final MaterialStateProperty? thumbColor,
final MaterialStateProperty? trackColor,
final MaterialTapTargetSize? materialTapTargetSize,
final DragStartBehavior dragStartBehavior,
final MouseCursor? mouseCursor,
final Color? focusColor,
final Color? hoverColor,
final MaterialStateProperty? overlayColor,
final double? splashRadius,
final BoolSelectionCallback? onFocusChange,
final bool autofocus}) = _$Switch;