Extracted<T>.rejection constructor

Extracted<T>.rejection({
  1. Iterable<String> actual = const [],
  2. Iterable<String>? which,
})

Creates a rejected extraction to indicate a failure trying to read the value.

When a nesting is rejected with an omitted or empty actual argument, it will be filled in with the literal representation of the value.

Implementation

Extracted.rejection(
    {Iterable<String> actual = const [], Iterable<String>? which})
    : _rejection = Rejection(actual: actual, which: which),
      _value = null;