BoolField.checkbox constructor

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