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