const
Widget.materialSwitch(- {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,
- @Default(DragStartBehavior.start) DragStartBehavior dragStartBehavior,
- MouseCursor? mouseCursor,
- Color? focusColor,
- Color? hoverColor,
- MaterialStateProperty? overlayColor,
- double? splashRadius,
- BoolSelectionCallback? onFocusChange,
- @Default(false) bool autofocus}
)
Implementation
const factory Widget.materialSwitch({
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,
@Default(DragStartBehavior.start) DragStartBehavior dragStartBehavior,
MouseCursor? mouseCursor,
Color? focusColor,
Color? hoverColor,
MaterialStateProperty? overlayColor,
double? splashRadius,
BoolSelectionCallback? onFocusChange,
@Default(false) bool autofocus,
}) = Switch;