SwitchFieldBlocBuilder constructor
const
SwitchFieldBlocBuilder({
- Key? key,
- required BooleanFieldBloc booleanFieldBloc,
- required Widget body,
- bool enableOnlyWhenFormBlocCanSubmit = false,
- bool isEnabled = true,
- FieldBlocErrorBuilder? errorBuilder,
- EdgeInsetsGeometry? padding,
- AlignmentGeometry alignment = AlignmentDirectional.centerStart,
- FocusNode? nextFocusNode,
- FieldBlocBuilderControlAffinity? controlAffinity,
- DragStartBehavior dragStartBehavior = DragStartBehavior.start,
- FocusNode? focusNode,
- bool autofocus = false,
- bool animateWhenCanShow = true,
- TextStyle? textStyle,
- MaterialStateProperty<
Color?> ? textColor, - ImageProvider<
Object> ? activeThumbImage, - ImageProvider<
Object> ? inactiveThumbImage, - MaterialStateProperty<
Color?> ? thumbColor, - MaterialStateProperty<
Color?> ? trackColor, - MaterialTapTargetSize? materialTapTargetSize,
- MaterialStateProperty<
MouseCursor?> ? mouseCursor, - MaterialStateProperty<
Color?> ? overlayColor, - double? splashRadius,
Implementation
const SwitchFieldBlocBuilder({
Key? key,
required this.booleanFieldBloc,
required this.body,
this.enableOnlyWhenFormBlocCanSubmit = false,
this.isEnabled = true,
this.errorBuilder,
this.padding,
this.alignment = AlignmentDirectional.centerStart,
this.nextFocusNode,
this.controlAffinity,
this.dragStartBehavior = DragStartBehavior.start,
this.focusNode,
this.autofocus = false,
this.animateWhenCanShow = true,
this.textStyle,
this.textColor,
this.activeThumbImage,
this.inactiveThumbImage,
this.thumbColor,
this.trackColor,
this.materialTapTargetSize,
this.mouseCursor,
this.overlayColor,
this.splashRadius,
}) : super(key: key);