validator method

  1. @override
String? validator(
  1. BuildContext context,
  2. bool value
)
override

Implement in subclasses to provide validation logic.

Implementation

@override
String? validator(BuildContext context, bool value) {
  return null; // checked or not checked is valid
}