call method

Pick call([
  1. Object? arg0,
  2. Object? arg1,
  3. Object? arg2,
  4. Object? arg3,
  5. Object? arg4,
  6. Object? arg5,
  7. Object? arg6,
  8. Object? arg7,
  9. Object? arg8,
  10. Object? arg9,
])

Implementation

Pick call([
  Object? arg0,
  Object? arg1,
  Object? arg2,
  Object? arg3,
  Object? arg4,
  Object? arg5,
  Object? arg6,
  Object? arg7,
  Object? arg8,
  Object? arg9,
]) {
  final selectors =
      [arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9]
          // null is a sign for unused 'varargs'
          .where((Object? it) => it != null)
          .cast<Object>()
          .toList(growable: false);

  return _drillDown(value, selectors, parentPath: path, context: context);
}