AuthBoolField constructor
Constructs an AuthBoolField object.
name specifies the name of the field.
widgetType defines the type of boolean widget to use.
title specifies the title of the field (optional).
validators defines a list of validation functions for the field.
value specifies the initial value of the field (default is false).
leftWidget is a widget to be displayed on the left side of the boolean widget.
rightWidget is a widget to be displayed on the right side of the boolean widget.
onChange is a callback function triggered when the value of the field changes.
Implementation
AuthBoolField({
required super.name,
required this.widgetType,
super.title,
super.validators = const [],
super.value = false,
this.leftWidget,
this.rightWidget,
this.onChange,
});