refineAsync method
S
refineAsync(})
Add an async one-off check, like "email is unique".
Use parseAsync with it.
Implementation
S refineAsync(
Future<bool> Function(O value) check, {
String? message,
String code = 'custom',
List<Object> path = const <Object>[],
}) {
return use(
RefineRule<O>(
asyncCheck: check,
message: message,
code: code,
extraPath: path,
),
);
}