writeAsObject method Null safety

void writeAsObject(
  1. int indent,
  2. String name,
  3. dynamic value
)