ValidationResult.ok constructor

const ValidationResult.ok({
  1. ContentType? contentType,
  2. required Map<String, dynamic>? headers,
  3. required int? statusCode,
})

Implementation

const ValidationResult.ok(
    {this.contentType, required this.headers, required this.statusCode})
    : valid = true,
      assert((statusCode != null && headers != null));