BoolFieldValidators extension

Validation extensions for Field<bool>.

All methods return this to allow method chaining on the field builder.

on

Properties

isChecked bool

Available on Field<bool>, provided by the BoolFieldValidators extension

Whether the field's current value is true.
no setter

Methods

mustBeFalse({String message = '', bool exposed = false}) Field<bool>

Available on Field<bool>, provided by the BoolFieldValidators extension

Validates that the value is exactly false.
mustBeTrue({String message = '', bool exposed = false}) Field<bool>

Available on Field<bool>, provided by the BoolFieldValidators extension

Validates that the value is exactly true.
required({String message = '', bool exposed = false}) Field<bool>

Available on Field<bool>, provided by the BoolFieldValidators extension

Validates that the value is not null (either true or false).