writeArray method

void writeArray(
  1. List? array
)

Implementation

void writeArray(List<dynamic>? array) {
  if (array == null) {
    writeNil();
    return;
  }

  writeArrayHeader(array.length);
  for (dynamic item in array) {
    write(item);
  }
}