Pick constructor

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

Pick constructor when being able to drill down path all the way to reach the value. value may still be null but the structure was correct, therefore isAbsent will always return false.

Implementation

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