Pick.absent constructor

Pick.absent(
  1. int missingValueAtIndex, {
  2. List<Object> path = const [],
  3. Map<String, Object?>? context,
})

Pick of an absent value. While drilling down path the structure of the data did not match the path and the value wasn't found.

value will always return null and isAbsent always true.

Implementation

Pick.absent(
  int missingValueAtIndex, {
  this.path = const [],
  Map<String, Object?>? context,
})  : value = null,
      _missingValueAtIndex = missingValueAtIndex,
      context = context != null ? Map.of(context) : {};