validator property
Optional validation function that returns an error message if PIN is invalid If this returns a non-empty string, it will be displayed as an error This allows for custom validation logic (e.g., PIN must not be all same digits)
Implementation
final String Function(String pin)? validator;