BloomGroupAsyncValidator typedef
Signature for an asynchronous validator callback on a BloomFormGroup.
Evaluates the aggregated raw values map of all fields in the group.
Returns a Future completing with an error string on failure or null when valid.
Future<String?> validateZipAndCity(Map<String, dynamic> data) async {
final valid = await geoService.verify(data['zip'], data['city']);
return valid ? null : 'Zip code does not match city.';
}
Implementation
typedef BloomGroupAsyncValidator = Future<String?> Function(
Map<String, dynamic> values);