processArray method

bool processArray(
  1. Reader reader,
  2. String? key
)

Called when the reader encounters a JSON array.

Returns whether to continue processing the contents of the array.

This call should either consume the array start (using reader.expectArray()) and return true, or consume the entire array (e.g., using reader.skipAnyValue()) and return false. The default implementation does the former.

If returning true, the processor will continue to process individualk values of the array using the typed process-functions, and finish with endArray when there are no further values.

If key is non-null, it's the key of the value in the current object. The key is always null outside of an object.

Implementation

bool processArray(Reader reader, String? key) {
  reader.expectArray();
  return true;
}