BoolFieldValidators extension
Validation extensions for Field<bool>.
All methods return this to allow method chaining on the field builder.
Properties
- isChecked → bool
-
Available on Field<
Whether the field's current value isbool> , provided by the BoolFieldValidators extensiontrue.no setter
Methods
-
mustBeFalse(
{String message = '', bool exposed = false}) → Field< bool> -
Available on Field<
Validates that the value is exactlybool> , provided by the BoolFieldValidators extensionfalse. -
mustBeTrue(
{String message = '', bool exposed = false}) → Field< bool> -
Available on Field<
Validates that the value is exactlybool> , provided by the BoolFieldValidators extensiontrue. -
required(
{String message = '', bool exposed = false}) → Field< bool> -
Available on Field<
Validates that the value is notbool> , provided by the BoolFieldValidators extensionnull(eithertrueorfalse).