BoolField constructor

BoolField({
  1. Key? key,
  2. required String placeholder,
  3. required BoolFieldContentBuilder builder,
  4. bool initialValue = false,
  5. ValueChanged<bool>? onChanged,
  6. ValueChanged<bool>? onSaved,
  7. bool isActive = true,
  8. 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,
      );