expectation function

Expectation expectation(
  1. String message,
  2. dynamic value, [
  3. String? path,
  4. String? code,
  5. Map<String, Object?>? data,
])

Creates an expectation for a validation result.

Implementation

Expectation expectation(
  String message,
  dynamic value, [
  String? path,
  String? code,
  Map<String, Object?>? data,
]) {
  return Expectation(path: path, message: message, value: value, code: code, data: data);
}