validate method

Future<bool> validate({
  1. Map data = const {},
})

Validates the form data and returns a boolean result.

If data is provided, it will be used instead of loading data from the request.

Returns true if all validations pass, otherwise false.

Implementation

Future<bool> validate({
  Map data = const {},
}) async {
  var res = await validateAndForm(data: data);
  return res.result;
}