BoolField.checkbox constructor
BoolField.checkbox({
- Key? key,
- required String placeholder,
- bool initialValue = false,
- ValueChanged<
bool> ? onChanged, - ValueChanged<
bool> ? onSaved, - bool isActive = true,
- bool isDisabled = false,
Implementation
BoolField.checkbox({
Key? key,
required this.placeholder,
bool initialValue = false,
ValueChanged<bool>? onChanged,
ValueChanged<bool>? onSaved,
bool isActive = true,
bool isDisabled = false,
}) : builder = _buildCheckbox,
_value = initialValue,
super(
key: key,
onChanged: onChanged,
onSaved: onSaved,
isActive: isActive,
isRequired: false,
isDisabled: isDisabled,
isValid: true,
);