Validator function to check if barcode is valid or not
final bool Function(BarcodeCapture)? validator;