writeArrayItem method Null safety

void writeArrayItem(
  1. int indent,
  2. String name,
  3. {bool isObjectItem = false}
)