SwitchFieldBlocBuilder constructor

const SwitchFieldBlocBuilder({
  1. Key? key,
  2. required BooleanFieldBloc booleanFieldBloc,
  3. required Widget body,
  4. bool enableOnlyWhenFormBlocCanSubmit = false,
  5. bool isEnabled = true,
  6. FieldBlocErrorBuilder? errorBuilder,
  7. EdgeInsetsGeometry? padding,
  8. AlignmentGeometry alignment = AlignmentDirectional.centerStart,
  9. FocusNode? nextFocusNode,
  10. FieldBlocBuilderControlAffinity? controlAffinity,
  11. DragStartBehavior dragStartBehavior = DragStartBehavior.start,
  12. FocusNode? focusNode,
  13. bool autofocus = false,
  14. bool animateWhenCanShow = true,
  15. TextStyle? textStyle,
  16. MaterialStateProperty<Color?>? textColor,
  17. ImageProvider<Object>? activeThumbImage,
  18. ImageProvider<Object>? inactiveThumbImage,
  19. MaterialStateProperty<Color?>? thumbColor,
  20. MaterialStateProperty<Color?>? trackColor,
  21. MaterialTapTargetSize? materialTapTargetSize,
  22. MaterialStateProperty<MouseCursor?>? mouseCursor,
  23. MaterialStateProperty<Color?>? overlayColor,
  24. 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);